Click or drag to resize

DiscreteInterval Structure

Represents an interval on the integers.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public struct DiscreteInterval : IEquatable<DiscreteInterval>

The DiscreteInterval type exposes the following members.

Properties
  NameDescription
Public propertyLeftEndpoint
Gets the minimum value on the interval.
Public propertyRightEndpoint
Gets the maximum value on the interval.
Top
Methods
  NameDescription
Public methodEquals(Object)
Tests whether a given object is equal to the current interval.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(DiscreteInterval)
Tests wither the current instance is equal to another discrete interval.
Public methodStatic memberFromEndpoints
Instantiates a new discrete interval from the given endpoints.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Tests whether two discrete intervals are equal.
Public operatorStatic memberInequality
Tests whether two intervals are not equal.
Top
See Also