Click or drag to resize
DigitalRuneNumericIsZero Method (Single, Single)
Determines whether a value is zero (regarding a specific tolerance).

Namespace: DigitalRune.Mathematics
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static bool IsZero(
	float value,
	float epsilon
)

Parameters

value
Type: SystemSingle
The value to test.
epsilon
Type: SystemSingle
The tolerance value.

Return Value

Type: Boolean
if the specified value is zero (within the tolerance); otherwise, .
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionepsilon is negative or 0.
Remarks
A value is zero if |x| < epsilon.
See Also