public static Matrix3d getRotationMatrix ( Matrix4d transform ) { Matrix3d rot = new Matrix3d ( ) ; transform . setRotationScale ( rot ) ; return rot ; }
Convert a transformation matrix into a rotation matrix .