Static ReadonlyunsetGets an Interval whose limits are RhinoMath.UnsetValue.
Static ReadonlyzeroGets an Interval whose limits are 0.0 and 1.0.
Static ReadonlyzeroGets an Interval whose limits are 0.0 and 2*Pi.
StaticaddStaticcompareCompares this Interval with another interval.
The lower bound has first evaluation priority.
0: if this is identical to other -1: if this[0] < other[0] +1: if this[0] > other[0] -1: if this[0] == other[0] and this[1] < other[1] +1: if this[0] == other[0] and this[1] > other[1] .
StaticcreateStaticepsilonStaticequalsStaticexpandExpand an interval by adding the value to T1 and subtracting it from T0. If T1 < T0, T0 and T1 are swapped.
StaticfromReturns a new Interval that is the Intersection of the two input Intervals.
If the intersection is not empty, then intersection = [max(a.Min(),b.Min()), min(a.Max(),b.Max())] The interval [ON.UnsetValue,ON.UnsetValue] is considered to be the empty set interval. The result of any intersection involving an empty set interval or disjoint intervals is the empty set interval.
StaticfromReturns a new Interval which contains both inputs.
The union of an empty set and an increasing interval is the increasing interval. The union of two empty sets is empty. The union of an empty set an a non-empty interval is the non-empty interval. The union of two non-empty intervals is [min(a.Min(),b.Min()), max(a.Max(),b.Max())]
StaticgrowGrows the Interval to include the given number.
Number to include in this interval.
StaticincludesTests another interval for Interval inclusion.
true if the other interval is contained within or is coincident with the limits of this Interval; otherwise false.
Tests another interval for Interval inclusion.
true if the other interval is contained within the limits of this Interval; otherwise false.
StaticincludesTests a parameter for Interval inclusion.
Parameter to test.
true if t is contained within or is coincident with the limits of this Interval.
Tests a parameter for Interval inclusion.
Parameter to test.
If true, the parameter must be fully on the inside of the Interval.
true if t is contained within the limits of this Interval.
StaticisReturns true if T[0] > T[1].
StaticisReturns true if T0 < T1.
StaticisReturns true if T0 == T1 != ON.UnsetValue.
StaticisGets a value indicating whether or not this Interval is valid. Valid intervals must contain valid numbers.
StaticLengthGets the signed length of the numeric range. If the interval is decreasing, a negative length will be returned.
StaticmakeEnsures this Interval is either singleton or increasing.
StaticmaxGets the larger of T0 and T1.
StaticmidGets the average of T0 and T1.
StaticminGets the smaller of T0 and T1.
StaticnormalizedStaticnormalizedConverts interval value, or pair of values, to normalized parameter.
Normalized parameter x so that min*(1.0-x) + max*x = intervalParameter.
StaticparameterConverts normalized parameter to interval value, or pair of values.
Interval parameter min*(1.0-normalizedParameter) + max*normalizedParameter.
StaticparameterStaticreverseChanges interval to [-T1, -T0].
StaticsubtractStaticswapExchanges T0 and T1.
StaticToReturns a string representation of this Interval.
A string with T0,T1.
Represents an interval in one-dimensional space, that is defined as two extrema or bounds.