FloatEqualityComparer
Namespace: QuickGraph
IEqualityComparer for floats with user-specified tolerance.
Constructors
Constructor | Description |
new()
Signature: unit -> unit
|
Constructs FloatEqualityComparer with default tolerance. |
new(tolerance)
Signature: tolerance:float32 -> unit
|
Constructs FloatEqualityComparer with user-given tolerance. |
Instance members
Instance member | Description |
Equals(x, y)
Signature: (x:float32 * y:float32) -> bool
Modifiers: abstract |
Implements IEqualityComparer.Equals |
GetHashCode(x)
Signature: x:float32 -> int
Modifiers: abstract |
Implements IEqualityComparer.GetHashCode |
Tolerance()
Signature: unit -> unit
|
Tolerance used during equality comparison |
Static members
Static member | Description |
DefaultTolerance
Signature: float32
|
Default tolerance |