pub fn cross(a: [f64; 2], b: [f64; 2]) -> f64
The 2-D cross product a.x b.y - a.y b.x: positive where b lies counter-clockwise of a.
a.x b.y - a.y b.x
b
a