RhinoCommon API
QuaternionGetRotation Method (Double, Vector3d) |
Returns the rotation defined by the quaternion.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool GetRotation( out double angle, out Vector3d axis )
Public Function GetRotation ( <OutAttribute> ByRef angle As Double, <OutAttribute> ByRef axis As Vector3d ) As Boolean
Parameters
- angle
- Type: SystemDouble
An angle in radians. - axis
- Type: Rhino.GeometryVector3d
unit axis of rotation of 0 if (b,c,d) is the zero vector.
Return Value
Type: BooleanTrue if the operation succeeded; otherwise, false.

If the quaternion is not unitized, the rotation of its unitized form is returned.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14