Polygon

A polygon shape defined by a series of points.

  • Polygon()
  • Polygon(points: Sequence[Vec2])

Properties


NameDescriptionType
pointsThe points that define the polygonlist[Vec2]

Methods


Copy

copy() Polygon

Create a copy of the polygon object.

Returns

Polygon : A new copy of the polygon.