Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)
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: Visual3DAssembly: 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