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: 4.1.4
Syntax
public struct Interval : IEquatable<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 methodContains(Double)
Determines whether a given point is contained in the closed interval.
Public methodContains(Double, IntervalType)
Determines whether a given point is contained in the closed or open interval.
Public methodContains(Double, IntervalType, IntervalType)
Determines whether a given point is contained in the interval, with the left and right endpoints separately specififed as closed or open.
Public methodEquals(Object)
Tests whether a given object is equal to the current interval.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Interval)
Tests wither the current instance is equal to another interval.
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
Tests whether two intervals are equal.
Public operatorStatic memberInequality
Tests whether two intervals are not equal.
Top
Remarks
See Also