Quaternion.SetRotation Method (Double, Vector3d)

QuaternionSetRotation Method (Double, Vector3d)

Sets the quaternion to 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)
Syntax
public void SetRotation(
	double angle,
	Vector3d axisOfRotation
)
Public Sub SetRotation ( 
	angle As Double,
	axisOfRotation As Vector3d
)

Parameters

angle
Type: SystemDouble
in radians.
axisOfRotation
Type: Rhino.GeometryVector3d
The direction of the axis of rotation.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also