public static bool PointInShapes(Vector2D point) { foreach (ShapeObject shape in ShapeObject.GetList()) { if (shape.GetWorldPolygon().PointInPoly(point)) { return(true); } } return(false); }