ARDK for Android/com.nianticlabs.ardk.utils/ImageMath/calculateDeviceRotation
calculateDeviceRotation
[androidJvm]
fun calculateDeviceRotation(fromOrientation: Orientation, toOrientation: Orientation): Matrix
Returns an affine transform that rotates between two interface orientations around the center.
This method models physical device rotation.
Return
An affine Matrix that rotates from the fromOrientation into the toOrientation.
Parameters
androidJvm
| fromOrientation | Starting orientation. |
| toOrientation | Target orientation. |