Aardvark.Base


ISimpleRange<'TValue, 'TRange>

ISimpleRange enforces a uniform interface of range operations that ony require comparison of boundaries.

Instance members

Instance memberDescription
Contains(value)
Signature: value:'TValue -> bool
Modifiers: abstract

Returns whether range contains given value.

Contains(range)
Signature: range:'TRange -> bool
Modifiers: abstract

Returns whether range completely contains given range.

ExtendBy(value)
Signature: value:'TValue -> unit
Modifiers: abstract

Extends the range to contain the supplied value.

ExtendBy(range)
Signature: range:'TRange -> unit
Modifiers: abstract

Extends the range to contain the supplied range.

ExtendedBy(value)
Signature: value:'TValue -> 'TRange
Modifiers: abstract

Returns the range extended to contain the supplied value.

ExtendedBy(range)
Signature: range:'TRange -> 'TRange
Modifiers: abstract

Returns the range extended to contain the supplied range. Returns this.

Intersects(range)
Signature: range:'TRange -> bool
Modifiers: abstract

Checks if 2 ranges intersect each other.

Repair()
Signature: unit -> 'TRange
Modifiers: abstract

Checks if the range is still valid and repairs if not.

Fork me on GitHub