rotate method

Vector3 rotate(
  1. double angle, {
  2. Vector3 axis = OUT,
})

Implementation

Vector3 rotate(double angle, {Vector3 axis = OUT}) {
  //Use quaternions...because why not

  var quat = quaternionFromAngleAxis(angle, axis);
  return applyQuaternion(quat);
}