QuickGraph


DoubleEqualityComparer

Namespace: QuickGraph

IEqualityComparer for floats with user-specified tolerance.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Constructs DoubleEqualityComparer with default tolerance.

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

Constructs DoubleEqualityComparer with user-given tolerance.

Instance members

Instance memberDescription
Equals(x, y)
Signature: (x:float * y:float) -> bool
Modifiers: abstract

Implements IEqualityComparer.Equals

GetHashCode(x)
Signature: x:float -> int
Modifiers: abstract

Implements IEqualityComparer.GetHashCode

Tolerance()
Signature: unit -> unit

Tolerance used during equality comparison

Static members

Static memberDescription
DefaultTolerance
Signature: float

Default tolerance

Fork me on GitHub