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

Returns the square of the distance between two points.

Namespace: org.critterai
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 GetDistanceSq(
	Vector3 a,
	Vector3 b
)
Public Shared Function GetDistanceSq ( _
	a As Vector3, _
	b As Vector3 _
) As Single
public:
static float GetDistanceSq(
	Vector3 a, 
	Vector3 b
)

Parameters

a
Vector3
Point A.
b
Vector3
Point B.

Return Value

The square of the distance between the points.

See Also