Property | Type | Description | |
---|---|---|---|
triangleIndices | List |
Method | Description | |
---|---|---|
initialize ( int count ) : void | ||
testPointTriangle ( Vector2 point, Vector2 a, Vector2 b, Vector2 c ) : bool | ||
triangulate ( Vector2 points, bool arePointsCCW = true ) : void |
Computes a triangle list that fully covers the area enclosed by the given set of points. If points are not CCW, pass false for the arePointsCCW parameter
|
public static testPointTriangle ( Vector2 point, Vector2 a, Vector2 b, Vector2 c ) : bool | ||
point | Vector2 | |
a | Vector2 | |
b | Vector2 | |
c | Vector2 | |
return | bool |
public triangulate ( Vector2 points, bool arePointsCCW = true ) : void | ||
points | Vector2 | A list of points that defines an enclosing path. |
arePointsCCW | bool | |
return | void |