Represents a one-dimensional numeric domain.

Constructors

GH_Interval

#
Default constructor
public GH_Interval()

GH_Interval

#
Create a duplicate from another interval.
public GH_Interval(
GH_Interval
other
Interval start
)

GH_Interval

#
Create a duplicate of another interval
public GH_Interval(
interval
Interval to copy. If null, a default interval will be created.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
Gets the validity of this instance. Intervals are invalid if either of the extremes is a #NaN.
public override bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public override string IsValidWhyNot { get; }

QC_Type

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public GH_QuickCastType QC_Type { get; }
QC_Type

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

Gets or sets the internal data.
public virtual T Value { get; set; }
inherited fromGH_Goo<T>

Methods

CastFrom

#
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastFrom(
source
)

CastTo<T>

#
Local to Remote caster function. this stuff is complex, don't concern yourself with casting logic.
public override bool CastTo<T>(
ref T
target
)
GH_Goo<T>.CastTo

Duplicate

#
Create a duplicate of this interval.
public override IGH_Goo Duplicate()

DuplicateInterval

#
Create a duplicate of this interval.
public GH_Interval DuplicateInterval()

EmitProxy

#
Returns a proxy that represents this interval. Do not call this function unless you're
public override IGH_GooProxy EmitProxy()

QC_Bool

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public bool QC_Bool()
QC_Bool

QC_Col

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Color QC_Col()
QC_Col

QC_CompareTo

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public int QC_CompareTo()
QC_CompareTo

QC_Complex

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Complex QC_Complex()
QC_Complex

QC_Distance

#
public double QC_Distance()
QC_Distance

QC_Hash

#
public int QC_Hash()
QC_Hash

QC_Int

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public int QC_Int()
QC_Int

QC_Interval

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Interval QC_Interval()
QC_Interval

QC_Matrix

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Matrix QC_Matrix()
QC_Matrix

QC_Num

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public double QC_Num()
QC_Num

QC_Pt

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Point3d QC_Pt()
QC_Pt

QC_Text

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public string QC_Text()
QC_Text

QC_Vec

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public Vector3d QC_Vec()
QC_Vec

Read

#
public override bool Read(
reader
)
GH_Goo<T>.Read

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.
public virtual object ScriptVariable()
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
Format the interval using default grasshopper formatting logic.
public override string ToString()

Write

#
public override bool Write(
writer
)
GH_Goo<T>.Write