Represents an interval on the real number line.
Namespace:
Meta.NumericsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
[SerializableAttribute] public struct Interval
<SerializableAttribute> _ Public Structure Interval
[SerializableAttribute] public value class Interval
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| __repr__()()() | Obsolete. | |
| ClosedContains(Double) |
Determines whether the argument lies in the closed interval.
| |
| Equality(Interval, Interval) |
Determines whether two intervals are equal.
| |
| Equals(Object) |
Determines whether a given object is an equal interval.
(Overrides ValueType..::.Equals(Object).) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| FromEndpointAndWidth(Double, Double) |
Creates a new interval, given its lower endpoint and width.
| |
| FromEndpoints(Double, Double) |
Creates a new interval, given its endpoints.
| |
| FromMidpointAndWidth(Double, Double) |
Creates a new interval, given its midpoint and width.
| |
| GetHashCode()()() |
Returns the hash code for this instance.
(Overrides ValueType..::.GetHashCode()()().) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Inequality(Interval, Interval) |
Determines whether two intervals are not equal.
| |
| LeftEndpoint |
Gets the left (lower) endpoint of the interval.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Midpoint |
Gets the mid-point of the interval.
| |
| OpenContains(Double) |
Determines whether the argument lies in the open interval.
| |
| RightEndpoint |
Gets the right (upper) endpoint of the interval.
| |
| ToString()()() |
Returns the fully qualified type name of this instance.
(Overrides ValueType..::.ToString()()().) | |
| Width |
Gets the width of the interval.
|
Remarks
Use the static methods FromEndpoints(Double, Double), FromMidpointAndWidth(Double, Double), and FromEndpointAndWidth(Double, Double) to instantiate intervals.