pub fn corner_index(signs: [f64; 3]) -> usize
Canonical index of the cube corner with the given per-axis signs.