Original Post
Given a 3x3 rotation matrix M, is there any clean, robust, simple way to come up with a scalar describing how axis-skewed it is? That is, I'd like it to return 0 for a 90 degree rotation about the X axis, because each of the axes lines up with a unit axis (even though they don't correspond), and greater than 0 for a 45 degree rotation around the X axis, because they don't all line up. I don't much care about the particular function curve as long as it's reasonably well-behaved.