Method ConvexPolygonArea
ConvexPolygonArea(List<Vector3>)
Finds the area of a convex polygon.
Declaration
public static float ConvexPolygonArea(List<Vector3> vertices)
Parameters
Type | Name | Description |
---|---|---|
List<Vector3> | vertices | Vertices defining the outline of a polygon. The polygon must be convex, but can be in either winding order. |
Returns
Type | Description |
---|---|
float | The area of the polygon. |