rotateOnAxis method

Object3D rotateOnAxis(
  1. Vector3 axis,
  2. double angle
)

axis -- A normalized vector in object space.

angle -- The angle in radians.

Rotate an object along an axis in object space. The axis is assumed to be normalized.

Implementation

Object3D rotateOnAxis(Vector3 axis, double angle) {
  // rotate object on axis in object space
  // axis is assumed to be normalized
  _q1.setFromAxisAngle(axis, angle);
  quaternion.multiply(_q1);
  return this;
}