Alpha
Polygon class Represents a polygon with a list of points.
The constructor of the Polygon class
the points of the Polygon
the area of the Polygon
the centroid of the Polygon
the number of points in the Polygon
the perimeter of the Polygon
The points of the Polygon
Sets the points of the Polygon
the new points of the Polygon
Checks if another Shape collides with the Polygon
the Shape to check
true if the Shape collides with the Polygon, false otherwise
true
false
Checks if a Circle collides with the Polygon
the Circle to check
true if the Circle collides with the Polygon, false otherwise
Checks if a Point collides with the Polygon
the Point to check
true if the point collides with the Polygon, false otherwise
Checks if a Polygon collides with the Polygon
the Polygon to check
true if the Polygon collides with the Polygon, false otherwise
Checks if a Rect collides with the Polygon
the Rect to check
true if the Rect collides with the Polygon, false otherwise
a copy of the Polygon
Updates the Polygon to equal the given Polygon
the Polygon to copy
Rotates the Polygon by a given angle around a given origin
the amount in radians to rotate
the origin to rotate around (default: (0, 0))
string representation of the Polygon
Static
Constructs a new Polygon from a given Polygon
Polygon to copy
the new Polygon
Polygon class Represents a polygon with a list of points.