Skip to content

Properties_T_Rhino_Geometry_Vector3d

Will Pearson edited this page Aug 12, 2016 · 2 revisions

Vector3d Properties

The Vector3d type exposes the following members.

Properties

 

Name Description
Public property IsUnitVector Gets a value indicating whether or not this is a unit vector. A unit vector has length 1.
Public property IsValid Gets a value indicating whether this vector is valid. A valid vector must be formed of valid component values for x, y and z.
Public property IsZero Gets a value indicating whether the X, Y, and Z values are all equal to 0.0.
Public property Item Gets or sets a vector component at the given index.
Public property Length Computes the length (or magnitude, or size) of this vector. This is an application of Pythagoras' theorem. If this vector is invalid, its length is considered 0.
Public property MaximumCoordinate Gets the largest (both positive and negative) component value in this vector.
Public property MinimumCoordinate Gets the smallest (both positive and negative) component value in this vector.
Public property SquareLength Computes the squared length (or magnitude, or size) of this vector. This is an application of Pythagoras' theorem. While the Length property checks for input validity, this property does not. You should check validity in advance, if this vector can be invalid.
Public propertyStatic member Unset Gets the value of the vector with each component set to RhinoMath.UnsetValue.
Public property X Gets or sets the X (first) component of the vector.
Public propertyStatic member XAxis Gets the value of the vector with components 1,0,0.
Public property Y Gets or sets the Y (second) component of the vector.
Public propertyStatic member YAxis Gets the value of the vector with components 0,1,0.
Public property Z Gets or sets the Z (third) component of the vector.
Public propertyStatic member ZAxis Gets the value of the vector with components 0,0,1.
Public propertyStatic member Zero Gets the value of the vector with components 0,0,0.
  Back to Top

See Also

Reference

Vector3d Structure
Rhino.Geometry Namespace

Clone this wiki locally