Method TriangleArea
TriangleArea(Vector3, Vector3, Vector3)
Returns the area of a triangle.
Declaration
public static float TriangleArea(Vector3 x, Vector3 y, Vector3 z)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | x | First vertex position of the triangle. |
Vector3 | y | Second vertex position of the triangle. |
Vector3 | z | Third vertex position of the triangle. |
Returns
Type | Description |
---|---|
float | The area of the triangle. |