Properties_T_Rhino_Geometry_Quaternion - mcneel/rhinocommon-api-docs GitHub Wiki

Quaternion Properties

The Quaternion type exposes the following members.

Properties

 

Name Description
Public property A Gets or sets the real part of the quaternion.
Public property B Gets or sets the first imaginary coefficient of the quaternion.
Public property C Gets or sets the second imaginary coefficient of the quaternion.
Public property Conjugate Gets a new quaternion that is the conjugate of this quaternion. This is (a,-b,-c,-d)
Public property D Gets or sets the third imaginary coefficient of the quaternion.
Public propertyStatic member I Returns the (0,1,0,0) quaternion.
Public propertyStatic member Identity Returns the (1,0,0,0) quaternion.
Public property Inverse Computes a new inverted quaternion, (a/L2, -b/L2, -c/L2, -d/L2),

where L2 = length squared = (aa + bb + cc + dd). This is the multiplicative inverse, i.e., (a,b,c,d)*(a/L2, -b/L2, -c/L2, -d/L2) = (1,0,0,0). If this is the zero quaternion, then the zero quaternion is returned.

Public property IsScalar true if b, c, and d are all zero.
Public property IsValid Determines if the four coefficients are valid numbers within RhinoCommon. See IsValidDouble(Double).
Public property IsVector true if a = 0 and at least one of b, c, or d is not zero.
Public property IsZero true if a, b, c, and d are all zero.
Public propertyStatic member J Returns the (0,0,1,0) quaternion.
Public propertyStatic member K Returns the (0,0,0,1) quaternion.
Public property Length Returns the length or norm of the quaternion.
Public property LengthSquared Gets the result of (a^2 + b^2 + c^2 + d^2).
Public property Scalar The real (scalar) part of the quaternion This is A.
Public property Vector The imaginary part of the quaternion (B,C,D)
Public propertyStatic member Zero Returns the dafault quaternion, where all coefficients are 0.
  Back to Top

See Also

Reference

Quaternion Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️