Represents a one-dimensional numeric domain.
Constructors
GH_Interval
#public GH_Interval(GH_Interval other)
Create a duplicate from another interval.
Parameters:
| other (GH_Interval) | Interval start |
Fields
m_value
protected T m_value
Properties
IsValid
#Gets the validity of this instance. Intervals are invalid if either of the extremes is a #NaN.
Overrides: GH_Goo<T>.IsValid
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
QC_Type
#[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public GH_QuickCastType QC_Type { get; }
Implements: QC_Type
Value
public virtual T Value { get; set; }
Gets or sets the internal data.
Methods
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| source (object) |
Overrides: GH_Goo<T>.CastFrom
CastTo<T>
#Local to Remote caster function. this stuff is complex, don't concern yourself with casting logic.
Parameters:
| target (ref T) |
Overrides: GH_Goo<T>.CastTo
EmitProxy
#Returns a proxy that represents this interval. Do not call this function unless you're
Overrides: GH_Goo<T>.EmitProxy
QC_CompareTo
#[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public int QC_CompareTo(IGH_QuickCast other)
Parameters:
| other (IGH_QuickCast) |
Implements: QC_CompareTo
ScriptVariable
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable
ToString
#Format the interval using default grasshopper formatting logic.
Overrides: GH_Goo<T>.ToString