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

Determines whether or not the specified vectors are equal within the specified tolerance.

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 bool SloppyEquals(
	Vector2 u,
	Vector2 v,
	float tolerance
)
Public Shared Function SloppyEquals ( _
	u As Vector2, _
	v As Vector2, _
	tolerance As Single _
) As Boolean
public:
static bool SloppyEquals(
	Vector2 u, 
	Vector2 v, 
	float tolerance
)

Parameters

u
Vector2
Vector u.
v
Vector2
Vector v
tolerance
Single
The allowed tolerance. [Limit: >= 0]

Return Value

True if the specified vectors are similar enough to be considered equal.

Remarks

Change in beahvior: Prior to version 0.4, the area of equality for this method was an axis-aligned bounding box at the tip of the vector. As of version 0.4 the area of equality is a sphere. This change improves performance.

See Also