 | MathUtilsFloatEquals Method (Single, Single) |
Checks if the passed float values are "equal". I.e. checking if the difference between the two is smaller than the epsilon value specified in MathUtils.Epsilon.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool FloatEquals(
float value1,
float value2
)
Public Shared Function FloatEquals (
value1 As Single,
value2 As Single
) As Boolean
public:
static bool FloatEquals(
float value1,
float value2
)
static member FloatEquals :
value1 : float32 *
value2 : float32 -> bool
Parameters
- value1
- Type: SystemSingle
The first floating point Value. - value2
- Type: SystemSingle
The second floating point Value.
Return Value
Type:
Boolean True if the values are "equal", false otherwise.
See Also