nalgebra
nalgebra copied to clipboard
Construct n-dimensional rotation matrix.
Adds two methods from_arc and from_arc_angle to OMatrix and Rotation based on Lemma 4.1 (Codesido's Rotation Formula) and Simple rotations / Rotation in a two–plane, respectively. Also adds Rotation4/5/6 aliases. For higher dimensions, a rotation axis is ambiguous and instead two vectors spanning the rotation arc seem to be the most intuitive alternative. Both methods are based on the exponential map but have different properties in edge cases as documented.