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

Derives the normalized direction vector from point A to point B. (Costly method!)

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

Parameters

a
Vector2
The starting point A.
b
Vector2
The end point B.

Return Value

The normalized direction vector for the vector pointing from point A to B.

See Also