M_Rhino_Geometry_Quaternion_Rotation_1 - mcneel/rhinocommon-api-docs GitHub Wiki
Returns the unit quaternion cos(angle/2), sin(angle/2)*x, sin(angle/2)*y, sin(angle/2)*z where (x,y,z) is the unit vector parallel to axis. This is the unit quaternion that represents the rotation of angle about axis.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Quaternion Rotation(
double angle,
Vector3d axisOfRotation
)
VB
Public Shared Function Rotation (
angle As Double,
axisOfRotation As Vector3d
) As Quaternion
- angle
- Type: System.Double
An angle in radians. - axisOfRotation
- Type: Rhino.Geometry.Vector3d
The axis of rotation.
Type: Quaternion
A new quaternion.
Supported in: 6.0.16224.21491, 5D58w
Quaternion Structure
Rotation Overload
Rhino.Geometry Namespace