QuickGraph


FloatEqualityComparer

Namespace: QuickGraph

IEqualityComparer for floats with user-specified tolerance.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Constructs FloatEqualityComparer with default tolerance.

new(tolerance)
Signature: tolerance:float32 -> unit

Constructs FloatEqualityComparer with user-given tolerance.

Instance members

Instance memberDescription
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 memberDescription
DefaultTolerance
Signature: float32

Default tolerance

Fork me on GitHub