geom.inertial_frame_rotation()
Find the rotation into the principal axis frame.
Usage
geom.inertial_frame_rotation(geo)After rotate(center(geo), rot), the principal axes with the smallest to largest moments lie along x, y, and z, so the inertia tensor is diagonal.
Parameters
geo: Geometry- Geometry.
Returns
Rotation- The rotation.