rotated method

Vector3 rotated (Vector3 v)

Returns a copy of v rotated by quaternion.

Implementation

Vector3 rotated(Vector3 v) {
  final Vector3 out = v.clone();
  rotate(out);
  return out;
}