Represents a 3D vector. GH_Vector re-implements the RhinoCommon Vector3d struct.

Constructors

GH_Vector

#
Default constructor. Creates a zero-length vector.
public GH_Vector()

GH_Vector

#
Create a duplicate of another vector
public GH_Vector(
GH_Vector
other
Vector to copy. If null, a default vector will be created.
)

GH_Vector

#
Create a vector from x, y and z components.
public GH_Vector(
vector
Vector to wrap.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
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 vector.
public override IGH_Goo Duplicate()

DuplicateVector

#
Create a duplicate of this vector.
public GH_Vector DuplicateVector()

EmitProxy

#
Returns a proxy that represents this vector. 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

#
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 vector using default grasshopper formatting logic.
public override string ToString()

Write

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