Represents a double-precision floating point number. GH_Number re-implements the framework System.Double type.

Constructors

GH_Number

#
public GH_Number()
Blank constructor

GH_Number

#
public GH_Number(double number)
number (double)

GH_Number

#
public GH_Number(GH_Number other)
other (GH_Number)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
public override bool IsValid { get; }
Gets the validity of this instance. If the number is NaN, then it is considered invalid

IsValidWhyNot

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

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

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

Methods

CastFrom

#
public override bool CastFrom(object source)
source (object)

CastTo<T>

#
public override bool CastTo<T>(ref T target)
target (ref T)
GH_Goo<T>.CastTo

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateNumber

#
public GH_Number DuplicateNumber()

EmitProxy

#
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

#
public int QC_CompareTo(IGH_QuickCast other)
other (IGH_QuickCast)
QC_CompareTo

QC_Complex

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

QC_Distance

#
public double QC_Distance(IGH_QuickCast other)
other (IGH_QuickCast)
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(GH_IReader reader)
reader (GH_IReader)
GH_Goo<T>.Read

ScriptVariable

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

ToString

#
public override string ToString()

Write

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