cross method

Vector3 cross(
  1. Vector3 other
)

Cross product.

Implementation

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