Skip to main content
←API Reference ←com.nianticspatial.nsdk.utils ←ImageMath

calculateDeviceRotation


Declaration​

fun calculateDeviceRotation(fromOrientation: Orientation, toOrientation: Orientation): Matrix

Summary​

Returns an affine transform that rotates between two interface orientations around the center.


This method models physical device rotation.

Returns​

An affine Matrix that rotates from the fromOrientation into the toOrientation.