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

Returns the normal for the triangle. (Costly method!)

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 Vector3 GetNormal(
	Vector3 a,
	Vector3 b,
	Vector3 c
)
Public Shared Function GetNormal ( _
	a As Vector3, _
	b As Vector3, _
	c As Vector3 _
) As Vector3
public:
static Vector3 GetNormal(
	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

The normal of the triangle.

Remarks

The normal of a triangle is the vector perpendicular to the triangle's plane with the direction determined by the right-handed rule.

See Also