Exemplo n.º 1
0
 ///Returns whether a point lies within a polygon
 public static bool PointInPoly(Vector2 p, Poly poly)
 {
     return(PointInPoly(p, poly.GetOffsetVerts()));
 }
Exemplo n.º 2
0
 ///Returns whether a polygon intersects another polygon
 public static bool PolyIntersectsPoly(Poly p1, Poly p2)
 {
     return(PolyIntersectsPoly(p1.GetOffsetVerts(), p2.GetOffsetVerts()));
 }
Exemplo n.º 3
0
 ///Returns whether a line segment intersects a polygon
 public static bool LineSegIntersectsPoly(LineSeg lns, Poly p)
 {
     return(LineSegIntersectsPoly(lns, p.GetOffsetVerts()));
 }
Exemplo n.º 4
0
 ///Returns whether a circle intersects a polygon
 public static bool CircleIntersectsPoly(Circle c, Poly p)
 {
     return(CircleIntersectsPoly(c, p.GetOffsetVerts()));
 }
Exemplo n.º 5
0
 ///Returns whether a point lies on the perimeter of a polygon
 public static bool PointOnPolyPerimeter(Vector2 p, Poly poly)
 {
     return(PointOnPolyPerimeter(p, poly.GetOffsetVerts()));
 }