/// Converts a matrix into a unit quaternion.
Converts a matrix into a unit quaternion.
Converts a matrix into a unit quaternion .
fn mat_to_quat<T: Float>(mat: &Matrix<T>) -> UnitQuaternion<T> {
    UnitQuaternion::from_rotation_matrix(&Rotation::from_matrix_unchecked(
        mat.fixed_slice::<3, 3>(0, 0).into(),
    ))
}
fn mat_to_quat < T : Float > ( mat : & Matrix < T > ) -> UnitQuaternion < T > { UnitQuaternion :: from_rotation_matrix ( & Rotation :: from_matrix_unchecked ( mat . fixed_slice :: < 3 , 3 > ( 0 , 0 ) . into ( ) , ) ) }
Converts a matrix into a unit quaternion.
Converts a matrix into a unit quaternion .
mat
&Matrix<T>