com.haxepunk.masks.Polygon
- type
- class
- extends
- Hitbox
Static Methods
- parameters
sides The number of sides in the polygon
radius The distance that the corners are at
angle How much the polygon is rotated
- returns
- The polygon
Constructor
- parameters
points an array of coordinates that define the polygon (must have at least 3)
origin origin point of the polygon
- parameters
mask The other Mask to check against.
- returns
- If the Masks overlap.