[This is preliminary documentation and is subject to change.]

Returns a value suitable for comparing the relative area of two triangles. (E.g. Is triangle A larger than triangle B.)

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static float GetAreaComp(
	Vector3 a,
	Vector3 b,
	Vector3 c
)
Public Shared Function GetAreaComp ( _
	a As Vector3, _
	b As Vector3, _
	c As Vector3 _
) As Single
public:
static float GetAreaComp(
	Vector3 a, 
	Vector3 b, 
	Vector3 c
)

Parameters

a
Vector3
Vertex A of triangle ABC.
b
Vector3
Vertex B of triangle ABC.
c
Vector3
Vertex C of triangle ABC.

Return Value

A value suitable for comparing the relative area of two triangles.

Remarks

The value returned by this method can be converted to an area as follows: Area = Math.sqrt(value) / 2

Useful for cheaply comparing the size of triangles.

See Also