cross method

Vector3 cross(
  1. Vector3 other
)

Cross product.

Implementation

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