private bool IsPointInsideContour(Point2D p) { if (PolygonUtil.PointInPolygon2D(this, p)) { return(_holes.All(c => !c.IsPointInsideContour(p))); } return(false); }
public bool IsPointInsideContour(Point2D p) { if (PolygonUtil.PointInPolygon2D(this, p)) { foreach (Contour c in mHoles) { if (c.IsPointInsideContour(p)) { return(false); } } return(true); } return(false); }
public bool IsPointInside(TriangulationPoint p) { return(PolygonUtil.PointInPolygon2D(this, p)); }