Click or drag to resize
Interval Structure
Represents an interval on the real number line.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public struct Interval

The Interval type exposes the following members.

Properties
  NameDescription
Public propertyLeftEndpoint
Gets the left (lower) endpoint of the interval.
Public propertyMidpoint
Gets the mid-point of the interval.
Public propertyRightEndpoint
Gets the right (upper) endpoint of the interval.
Public propertyWidth
Gets the width of the interval.
Top
Methods
  NameDescription
Public methodClosedContains
Determines whether the argument lies in the closed interval.
Public methodEquals
Determines whether a given object is an equal interval.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromEndpointAndWidth
Creates a new interval, given its lower endpoint and width.
Public methodStatic memberFromEndpoints
Creates a new interval, given its endpoints.
Public methodStatic memberFromMidpointAndWidth
Creates a new interval, given its midpoint and width.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOpenContains
Determines whether the argument lies in the open interval.
Public methodToString
Produces a string representation of the interval.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two intervals are equal.
Public operatorStatic memberInequality
Determines whether two intervals are not equal.
Top
Remarks
See Also