crossProduct static method

double crossProduct(
  1. Vec a,
  2. Vec b
)

Implementation

static double crossProduct(Vec a, Vec b) => a.x * b.y - a.y * b.x;