Click or drag to resize
QuaternionRotation Method (Double, Vector3d)
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: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Quaternion Rotation(
	double angle,
	Vector3d axisOfRotation
)

Parameters

angle
Type: SystemDouble
An angle in radians.
axisOfRotation
Type: Rhino.GeometryVector3d
The axis of rotation.

Return Value

Type: Quaternion
A new quaternion.
See Also