area static method
Computes the signed area of a rectangle defined by three points. This method can also be used to calculate the area of a triangle.
Implementation
static double area(Vector3 a, Vector3 b, Vector3 c ) {
return ( ( c.x - a.x ) * ( b.z - a.z ) ) - ( ( b.x - a.x ) * ( c.z - a.z ) );
}