calculateViewRotation
Returns an affine transform that rotates between two interface orientations around the center. This method models UI rotation (opposite to physical device rotation).
Declaration
fun calculateViewRotation(fromOrientation: Orientation, toOrientation: Orientation): Matrix
Summary
Returns
An affine [Matrix] that rotates from the fromOrientation into the toOrientation.
Returns an affine transform that rotates between two interface orientations around the center. This method models UI rotation (opposite to physical device rotation).