Represents an interval of ordered values.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
[SerializableAttribute]
public struct Interval<T> : IEquatable<Interval<T>>,
IComparable<Interval<T>>
<SerializableAttribute>
Public Structure Interval(Of T)
Implements IEquatable(Of Interval(Of T)), IComparable(Of Interval(Of T))
[SerializableAttribute]
generic<typename T>
public value class Interval : IEquatable<Interval<T>>,
IComparable<Interval<T>>
[<SealedAttribute>]
[<SerializableAttribute>]
type Interval<'T> =
struct
interface IEquatable<Interval<'T>>
interface IComparable<Interval<'T>>
end
Type Parameters
- T
The IntervalT type exposes the following members.
| Name | Description |
---|
 | IntervalT |
Constructs a new interval.
|
Top
| Name | Description |
---|
 | 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 IntervalT structure to represent an interval of ordered values.
The type of the values must support the IComparableT interface.
The LowerBound and UpperBound properties return the
bounds of the interval.
The Contains(T) method determines whether a value is contained within an interval.
Reference