Group: Forum Members
Last Active: 12 Years Ago
Posts: 7,
Visits: 1
|
Hi, I've been trying to select a NPolygon instance using the Contains(NpointF) method and it is returning false for a point inside the polygon. I also tried the Intersect(Rectangle) with a small rectangle with any sucess. What am I doing wrong in the code below? foreach (NPolygonF polygon in this.polygons) { if (polygon.Contains(point)) { return polygon; } } Rgds, Leo
|