The type of a structure representing a rotation matrix.
SDKs
- iOS 4.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Core Motion
Declaration
struct CMRotationMatrix
The type of a structure representing a rotation matrix.
SDKs
Framework
struct CMRotationMatrix
var rotation Matrix: CMRotation Matrix
Returns a rotation matrix representing the device's attitude.