Structure
Attitude
public struct Attitude: Hashable
The device's orientation relative to a known frame of reference at a point in time.
See the documentation for CMAttitude
for more info.
Relationships
Conforms To
Hashable
Initializers
init(_:)
public init(_ attitude: CMAttitude)
init(quaternion:)
public init(quaternion: CMQuaternion)
Properties
quaternion
public var quaternion: CMQuaternion
rotationMatrix
@inlinable
public var rotationMatrix: CMRotationMatrix
roll
@inlinable
public var roll: Double
pitch
@inlinable
public var pitch: Double
yaw
@inlinable
public var yaw: Double
Methods
multiply(byInverseOf:)
@inlinable
public func multiply(byInverseOf attitude: Self) -> Self
hash(into:)
public func hash(into hasher: inout Hasher)
Operators
==
public static func == (lhs: Self, rhs: Self) -> Bool