Quaternion.axisAngle constructor

Quaternion.axisAngle(
  1. Vector3 axis,
  2. double angle
)

A rotation of angle radians about axis (need not be normalised).

Implementation

Quaternion.axisAngle(Vector3 axis, double angle)
  : x = 0.0,
    y = 0.0,
    z = 0.0,
    w = 1.0 {
  setAxisAngle(axis.x, axis.y, axis.z, angle);
}