setRotationFromAxisAngle method

void setRotationFromAxisAngle(
  1. Vector3 axis,
  2. double angle
)

axis - A normalized vector in object space.

angle - angle in radians

Calls setFromAxisAngle (axis, angle) on the quaternion.

Implementation

void setRotationFromAxisAngle(Vector3 axis, double angle) {
  // assumes axis is normalized
  quaternion.setFromAxisAngle(axis, angle);
}