cross method

Vector3 cross(
  1. Vector3 other
)
inherited

Cross product.

Implementation

Vector3 cross(Vector3 other) {
  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];
  return Vector3(_y * oz - _z * oy, _z * ox - _x * oz, _x * oy - _y * ox);
}