Click or drag to resize

GH_Vector Class

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

Namespace:  Grasshopper.Kernel.Types
Assembly:  Grasshopper (in Grasshopper.dll)
public class GH_Vector : GH_Goo<Vector3d>

The GH_Vector type exposes the following members.

Public methodGH_Vector
Default constructor. Creates a zero-length vector.
Public methodGH_Vector(GH_Vector)
Create a duplicate of another vector
Public methodGH_Vector(Vector3d)
Create a vector from x, y and z components.
Public methodCastFrom
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
(Overrides GH_GooTCastFrom(Object).)
Public methodCastToQ(Q)
Attempt a cast to type Q.
(Inherited from GH_GooT.)
Public methodCastToT(T)
Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
(Overrides GH_GooTCastToQ(Q).)
Public methodDuplicate
Create a duplicate of this vector.
(Overrides GH_GooTDuplicate.)
Public methodDuplicateVector
Create a duplicate of this vector.
Public methodEmitProxy
Returns a proxy that represents this vector. Do not call this function unless you're
(Overrides GH_GooTEmitProxy.)
Public methodRead (Overrides GH_GooTRead(GH_IReader).)
Public methodScriptVariable
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 from GH_GooT.)
Public methodToString
Format the vector using default grasshopper formatting logic.
(Overrides GH_GooTToString.)
Public methodWrite (Overrides GH_GooTWrite(GH_IWriter).)
See Also