Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
CAUTION: Uses an absolute tolerance, not a scaled error term, so be careful, when values might be large, that tolerance is large enough to be distinguishable within a float value. E.g. "NearZero" is only meaningful tolerance for values in range (-1, 1).

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public static bool NearlyEquals(
	this float number,
	float target,
	float tolerance
)
<ExtensionAttribute> _
Public Shared Function NearlyEquals ( _
	number As Single, _
	target As Single, _
	tolerance As Single _
) As Boolean

Parameters

number
Single
target
Single
tolerance
Single

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Single. When you use instance method syntax to call this method, omit the first parameter.

See Also