Interval Structure

Interval definition.
Public Structure Interval
This language is not supported or no code example is available.
public struct Interval
This language is not supported or no code example is available.
Name Description
Public constructor Interval(double, double) Standard constructor.
Public constructor Interval(double[]) Double array constructor.
Top
Name Description
Public property High Gets the right interval value.
Public property IsDecreasing Returns true if t0 > t1.
Public property IsIncreasing Returns true if t0 < t1.
Public property IsTwoPI Returns true if the interval length is 2*PI.
Public property Left Gets the left interval value.
Public property Length Returns t1 - t0.
Public property Low Gets the left interval value.
Public property Max Returns larger of t0 and t1.
Public property Mid Returns 0.5 * (t0 + t1).
Public property Min Returns smaller of t0 and t1.
Public property Right Gets the right interval value.
Top
Methods
 
Name Description
Public method Clamp(ref double) Clamps the value between the interval bounds.
Public method GetXElement(string)
Public method Includes(double, bool) Tests a value t to see if it is inside the interval.
Public method Includes(double, double) Tests a value t to see if it is inside the interval within a given tolerance.
Public method Static Intersection(Interval, Interval) Compute the intersection of the specified intervals.
Public method Static Merge(IList<Interval>, double) Merges a list of intervals.
Public method ParameterAt(double) Convert normalized parameter to interval value, or pair of values.
Public method Reverse() Changes interval to [-t1, -t0].
Public method Swap() Swaps t0 and t1.
Public method ToString() Converts this Interval to a human readable string.
Top
Fields
 
Name Description
Public field t0 Left interval value.
Public field t1 Right interval value.
Top

.NET Framework

Supported in: 4.8

In this article

Definition