d2d.sdl2.Polygon

Polygon

Members

Classes

Polygon
class Polygon(T, uint numSides)

A polygon is an object defined by its vertices in 2 space T is the type of the polygon and sides is how many sides the polygon has TODO: upgrade to dimension-ambiguous model class in math

Functions

bound
AxisAlignedBoundingBox!(T, 2) bound(Polygon!(T, sides) toBound)

Returns the rectangle bounding a polygon

Meta