pub fn unit(a: [f64; 2], b: [f64; 2]) -> ([f64; 2], f64)
Unit vector from a to b and the distance (a zero-length segment points along x).
a
b