cross method

Vector3 cross(
  1. Vector3 other
)

Cross product (returns a new vector).

Implementation

Vector3 cross(Vector3 other) => Vector3(
  y * other.z - z * other.y,
  z * other.x - x * other.z,
  x * other.y - y * other.x,
);