Quaternion
public struct Quaternion : Equatable
Quaternion type.
All rotations and axis systems follow the right-hand rule. The Hamilton quaternion product definition is used. A zero-rotation quaternion is represented by (1,0,0,0). The quaternion could also be written as w + xi + yj + zk.
For more info see: https://en.wikipedia.org/wiki/Quaternion
-
Undocumented
Declaration
Swift
public let w: Float -
Undocumented
Declaration
Swift
public let x: Float -
Undocumented
Declaration
Swift
public let y: Float -
Undocumented
Declaration
Swift
public let z: Float -
Undocumented
Declaration
Swift
public let timestampUs: UInt64 -
Initializes a new
Quaternion.Declaration
Swift
public init(w: Float, x: Float, y: Float, z: Float, timestampUs: UInt64)Parameters
wQuaternion entry 0, also denoted as a
xQuaternion entry 1, also denoted as b
yQuaternion entry 2, also denoted as c
zQuaternion entry 3, also denoted as d
timestampUsTimestamp in microseconds
-
Declaration
Swift
public static func == (lhs: Quaternion, rhs: Quaternion) -> Bool
View on GitHub
Install in Dash
Quaternion Structure Reference