Hello,

    I build a rotation matrix from the 3 rotation angles ( Rotation around X axis, rotation around Y axis and rotation around Z axis).

    I want to know if it is possible to retreive those angle from a rotation matrix ( the other way arround ) ?

    Thank you all,

    Vincent St-Amour
    Montreal.
 

    Here is how I build my matrix from the 3 rotation angles :

         //- -------
        Matrix4d lRotX = new Matrix4d();
        lRotX.setIdentity();
        lRotX.rotX( (float) Math.toRadians( X_Angle_Value ) );
        //- -------
        Matrix4d lRotY = new Matrix4d();
        lRotY.setIdentity();
        lRotY.rotY( (float) Math.toRadians( Y_Angle_Value ) );
        //- -------
        Matrix4d lRotZ = new Matrix4d();
        lRotZ.setIdentity();
        lRotZ.rotZ( (float) Math.toRadians(  Z_Angle_Value ) );
        //- -------
        Matrix4d lResult = new Matrix4d();
        lResult.setIdentity();

        lResult.mul( lRotX );
        lResult.mul( lRotY );
        lResult.mul( lRotZ );
 


 
 
 
 

Reply via email to