ComposableCoreMotion Documentation

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.

%7 Attitude Attitude Hashable Hashable Attitude->Hashable

Conforms To

Hashable

Initializers

init(_:​)

public init(_ attitude: CMAttitude)  

init(quaternion:​)

public init(quaternion: CMQuaternion)  

Properties

quaternion

public var quaternion: CMQuaternion

rotation​Matrix

@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(by​Inverse​Of:​)

@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