Polygon
A polygon shape defined by a series of points.
-
Polygon()
-
Polygon(points: Sequence[Vec2])
Properties
Name | Description | Type |
---|---|---|
points | The points that define the polygon | list[Vec2] |
Methods
Copy
copy() → Polygon
Create a copy of the polygon object.
Returns
Polygon
: A new copy of the polygon.