Profile Picture

NPolygonF geometrical methods

Posted By Leonardo Rocha 12 Years Ago
Author
Message
Leonardo Rocha
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

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

 






Similar Topics


Reading This Topic