# GH_Vector class

Namespace: [Grasshopper.Kernel.Types](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.types.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_Vector : GH_Goo<Vector3d>, IGH_QuickCast
```

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

## Constructors

- [GH_Vector](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/ctor.md): (3 overloads) Default constructor. Creates a zero-length vector.

## Properties

- [IsValid](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/isvalid.md)
- [IsValidWhyNot](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/isvalidwhynot.md): Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
- [QC_Type](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-type.md)
- [TypeDescription](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/typedescription.md)
- [TypeName](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/typename.md)

## Methods

- [CastFrom](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/castfrom.md): Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
- [CastTo<T>](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/castto.md): Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
- [Duplicate](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/duplicate.md): Create a duplicate of this vector.
- [DuplicateVector](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/duplicatevector.md): Create a duplicate of this vector.
- [EmitProxy](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/emitproxy.md): Returns a proxy that represents this vector. Do not call this function unless you're
- [QC_Bool](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-bool.md)
- [QC_Col](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-col.md)
- [QC_CompareTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-compareto.md)
- [QC_Complex](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-complex.md)
- [QC_Distance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-distance.md)
- [QC_Hash](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-hash.md)
- [QC_Int](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-int.md)
- [QC_Interval](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-interval.md)
- [QC_Matrix](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-matrix.md)
- [QC_Num](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-num.md)
- [QC_Pt](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-pt.md)
- [QC_Text](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-text.md)
- [QC_Vec](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/qc-vec.md)
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/read.md)
- [ToString](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/tostring.md): Format the vector using default grasshopper formatting logic.
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-vector/write.md)

## Inherited Members

- From [GH_Goo<T>](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-goo-1.md): [m_value](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-goo-1/m-value.md), [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-goo-1/value.md), [ScriptVariable](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.types.gh-goo-1/scriptvariable.md)
