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

Test if this vector is equal to another vector, within a given tolerance range

Namespace:  OpenMetaverse
Assembly:  OpenMetaverseTypes (in OpenMetaverseTypes.dll) Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool ApproxEquals(
	Vector2 vec,
	float tolerance
)
Public Function ApproxEquals ( _
	vec As Vector2, _
	tolerance As Single _
) As Boolean
public:
bool ApproxEquals(
	Vector2 vec, 
	float tolerance
)

Parameters

vec
Vector2
Vector to test against
tolerance
Single
The acceptable magnitude of difference between the two vectors

Return Value

True if the magnitude of difference between the two vectors is less than the given tolerance, otherwise false

See Also