Represents an interval of real numbers.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
[SerializableAttribute]
public struct Interval
<SerializableAttribute>
Public Structure Interval
[SerializableAttribute]
public value class Interval
[<SealedAttribute>]
[<SerializableAttribute>]
type Interval = struct end
The Interval type exposes the following members.
| Name | Description |
---|
 | Interval |
Constructs a new interval.
|
Top
| Name | Description |
---|
 | Center |
Gets the center of the interval.
|
 | LowerBound |
Gets the lower bound of the interval.
|
 | UpperBound |
Gets the upper bound of the interval.
|
 | Width |
Gets the width of the interval.
|
Top
Top
Top
Use the Interval structure to represent an interval of real numbers.
The LowerBound and UpperBound properties return the
bounds of the interval. The Width property returns the width of the interval.
The Contains(Double) method determines whether a value is contained within an interval.
Arithmetic operators are defined for combining intervals. For languages that do not support
operator overloading, equivalent methods have been supplied.
Interval structures are immutable. The lower and upper bounds can not be changed.
Use the constructor or one of the operator methods to create an
Interval
with new values for the boundaries.
Reference