crossInto method

Vector3 crossInto (Vector3 other, Vector3 out)

Cross product. Stores result in out.

Implementation

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