Computing Rotations for Flexible Body Kinematics in Multibody Systems