crossInto method

Vector3 crossInto(
  1. Vector3 other,
  2. Vector3 out
)
inherited

Cross product. Stores result in out.

Implementation

Vector3 crossInto(Vector3 other, Vector3 out) {
  final x = _v3storage[0];
  final y = _v3storage[1];
  final z = _v3storage[2];
  final otherStorage = other._v3storage;
  final ox = otherStorage[0];
  final oy = otherStorage[1];
  final oz = otherStorage[2];
  final outStorage = out._v3storage;
  outStorage[0] = y * oz - z * oy;
  outStorage[1] = z * ox - x * oz;
  outStorage[2] = x * oy - y * ox;
  return out;
}