- inR
- the rotation matrix to be transformed. Usually it is the matrix returned by SensorManager.GetRotationMatrix(Single[], System.Single[], System.Single[], System.Single[]).
- X
- defines on which world axis and direction the X axis of the device is mapped.
- Y
- defines on which world axis and direction the Y axis of the device is mapped.
- outR
- the transformed rotation matrix. inR and outR should not be the same array.
Documentation for this section has not yet been entered.
Rotates the supplied rotation matrix so it is expressed in a different coordinate system. This is typically used when an application needs to compute the three orientation angles of the device (see SensorManager.GetOrientation(Single[], System.Single[])) in a different coordinate system.
When the rotation matrix is used for drawing (for instance with OpenGL ES), it usually doesn't need to be transformed by this function, unless the screen is physically rotated, in which case you can use Android.Views.Display.Rotation to retrieve the current rotation of the screen. Note that because the user is generally free to rotate their screen, you often should consider the rotation in deciding the parameters to use here.
Examples:
Since the resulting coordinate system is orthonormal, only two axes need to be specified.