cross method

Vector cross(
  1. Vector other
)

Implementation

Vector cross(Vector other) {
  return Vector(
    y * other.z - z * other.y,
    z * other.x - x * other.z,
    x * other.y - y * other.x,
  );
}