Description:

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.

Syntax:
public static Quaternion Rotation(
double angle,
Vector3d axisOfRotation
)
Parameters:
  • angle
  • Type: double
  • An angle in radians.
  • axisOfRotation
  • Type: Vector3d
  • The axis of rotation.
Returns:
A new quaternion.
Available since:
5.0

Description:

Returns the unit quaternion that represents the rotation that maps plane0.xaxis to plane1.xaxis, plane0.yaxis to plane1.yaxis, and plane0.zaxis to plane1.zaxis.

Syntax:
public static Quaternion Rotation(
Plane plane0,
Plane plane1
)
Parameters:
  • plane0
  • Type: Plane
  • The first plane.
  • plane1
  • Type: Plane
  • The second plane.
Returns:
A quaternion value.
Remarks:
The plane origins are ignored
Available since:
5.0

Rotation method

Class:  Rhino.Geometry.Quaternion

Nothing found