crossVectors method

Vec3 crossVectors(
  1. Vec3 a,
  2. Vec3 b
)

Implementation

Vec3 crossVectors(Vec3 a, Vec3 b) {
  final ax = a.x, ay = a.y, az = a.z;
  final bx = b.x, by = b.y, bz = b.z;

  x = ay * bz - az * by;
  y = az * bx - ax * bz;
  z = ax * by - ay * bx;

  return this;
}