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

Determines whether the values are within the specified tolerance of each other.

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

Parameters

a
Single
The a-value to compare against the b-value.
b
Single
The b-value to compare against the a-value.
tolerance
Single
The tolerance to use for the comparison.

Return Value

True if the values are within the specified tolerance of each other.

See Also