crossProduct method

V3 crossProduct(
  1. V3 o
)

Cross product of this vector and o.

Returns a vector perpendicular to both, following the right-hand rule.

Implementation

V3 crossProduct(V3 o) => _v3(
  y*o.z - z*o.y,
  z*o.x - x*o.z,
  x*o.y - y*o.x
);