static float Area(Vector2 a, Vector2 b, Vector2 c) | Signed area of a triangle or of a polygon's points. Positive means counter-clockwise. |
static float Area(Vector2[] points) | Signed area of a triangle or of a polygon's points. Positive means counter-clockwise. |
static bool IsWithin(Vector2 point, Vector2 a, Vector2 b, Vector2 c, out float s, out float t) | Whether a point is in a triangle, also giving its barycentric s and t. |
static int[] Triangulate(Vector2[] points) | Ear-clips a simple polygon into triangle indices, optionally giving its area. Returns what it managed if the polygon is bad. |
static int[] Triangulate(Vector2[] points, out float area) | Ear-clips a simple polygon into triangle indices, optionally giving its area. Returns what it managed if the polygon is bad. |