pub fn nearest_rotation_matrix(m: &Matrix3) -> Option<Matrix3>Expand description
The rotation matrix closest (in Frobenius norm) to m, by Newton iteration for the polar
factor. Useful to clean up a matrix that has drifted after many multiplications. Returns None
if m is singular or has a negative determinant (is not near a proper rotation).