T_Rhino_Geometry_Interval - mcneel/rhinocommon-api-docs GitHub Wiki

Interval Structure

Represents an interval in one-dimensional space, that is defined as two extrema or bounds.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

[SerializableAttribute]
public struct Interval : ISerializable, IEquatable<Interval>, 
	IComparable<Interval>, IComparable

VB

<SerializableAttribute>
Public Structure Interval
	Implements ISerializable, IEquatable(Of Interval), 
	IComparable(Of Interval), IComparable

The Interval type exposes the following members.

Constructors

 

Name Description
Public method Interval(Interval) Initializes a new instance copying the other instance values.
Public method Interval(Double, Double) Initializes a new instance of the Rhino.Geometry.Interval class.
  Back to Top

Properties

 

Name Description
Public property IsDecreasing Returns true if T[0] > T[1].
Public property IsIncreasing Returns true if T0 < T1.
Public property IsSingleton Returns true if T0 == T1 != ON.UnsetValue.
Public property IsValid Gets a value indicating whether or not this Interval is valid. Valid intervals must contain valid numbers.
Public property Item Gets or sets the indexed bound of this Interval.
Public property Length Gets the signed length of the numeric range. If the interval is decreasing, a negative length will be returned.
Public property Max Gets the larger of T0 and T1.
Public propertyCode example Mid Gets the average of T0 and T1.
Public property Min Gets the smaller of T0 and T1.
Public property T0 Gets or sets the lower bound of the Interval.
Public property T1 Gets or sets the upper bound of the Interval.
Public propertyStatic member Unset Gets an Interval whose limits are RhinoMath.UnsetValue.
  Back to Top

Methods

 

Name Description
Public method CompareTo Compares this Interval with another interval. The lower bound has first evaluation priority.
Public method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals(Object) Determines whether the specified Object is equal to the current Interval, comparing by value. (Overrides ValueType.Equals(Object).)
Public method Equals(Interval) Determines whether the specified Interval is equal to the current Interval, comparing by value.
Public methodStatic member FromIntersection Returns a new Interval that is the Intersection of the two input Intervals.
Public methodStatic member FromUnion Returns a new Interval which contains both inputs.
Public method GetHashCode Computes the hash code for this Interval object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Grow Grows the Interval to include the given number.
Public method IncludesInterval(Interval) Tests another interval for Interval inclusion.
Public method IncludesInterval(Interval, Boolean) Tests another interval for Interval inclusion.
Public method IncludesParameter(Double) Tests a parameter for Interval inclusion.
Public method IncludesParameter(Double, Boolean) Tests a parameter for Interval inclusion.
Public method MakeIncreasing Ensures this Interval is either singleton or increasing.
Public method NormalizedIntervalAt Converts interval value, or pair of values, to normalized parameter.
Public method NormalizedParameterAt Converts interval value, or pair of values, to normalized parameter.
Public method ParameterAt Converts normalized parameter to interval value, or pair of values.
Public method ParameterIntervalAt Converts normalized parameter to interval value, or pair of values.
Public method Reverse Changes interval to [-T1, -T0].
Public method Swap Exchanges T0 and T1.
Public method ToString Returns a string representation of this Interval. (Overrides ValueType.ToString().)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Addition(Double, Interval) Shifts an interval by a specific amount (addition).
Public operatorStatic member Addition(Interval, Double) Shifts a Interval by a specific amount (addition).
Public operatorStatic member Equality Determines whether the two Intervals have equal values.
Public operatorStatic member GreaterThan Determines whether the first specified Interval comes after (has superior sorting value than) the second Interval. The lower bound has first evaluation priority.
Public operatorStatic member GreaterThanOrEqual Determines whether the first specified Interval comes after (has superior sorting value than) the second Interval, or is equal to it. The lower bound has first evaluation priority.
Public operatorStatic member Inequality Determines whether the two Intervals have different values.
Public operatorStatic member LessThan Determines whether the first specified Interval comes before (has inferior sorting value than) the second Interval. The lower bound has first evaluation priority.
Public operatorStatic member LessThanOrEqual Determines whether the first specified Interval comes before (has inferior sorting value than) the second Interval, or is equal to it. The lower bound has first evaluation priority.
Public operatorStatic member Subtraction(Double, Interval) Shifts an interval by a specific amount (subtraction).
Public operatorStatic member Subtraction(Interval, Double) Shifts an interval by a specific amount (subtraction).
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️