id: math.polygon title: Math.Polygon
Function TriangulatePoly:Int[](poly:SVec2I[])Runs a tesselation against a polygon SVec2I array, returning a list of triangle indices.
An array of indices that refer to the vertices of the input polygon. Three subsequent indices form a triangle.
Function TriangulatePoly:Int[](poly:SVec2F[])Runs a tesselation against a polygon SVec2F array, returning a list of triangle indices.
An array of indices that refer to the vertices of the input polygon. Three subsequent indices form a triangle.
Function TriangulatePoly:Int[](poly:Float[])Runs a tesselation against a polygon Float array, returning a list of triangle indices.
The array consists of pairs of x, y vertices. Output triangles are clockwise.
An array of indices that refer to the vertices of the input polygon. Three subsequent indices form a triangle.