rotated method Null safety

Vector3 rotated(
  1. Vector3 v
)

Returns a copy of v rotated by quaternion.

Implementation

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