pub fn shape_error(m: &[f64; 6]) -> f64
How far an affine map is from a similarity (rotation + uniform scale, either parity): the larger of the column-length mismatch and the columns’ cosine. Zero for a perfect similarity.