Constructor Polygon2D
Polygon2D(Vector2[])
Creates a polygon from an ordered vertex array.
public Polygon2D(Vector2[] v)
Parameters
vVector2[]The polygon vertices in loop order.
Exceptions
- ArgumentException
Thrown when fewer than three vertices are supplied.