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

  • w

    Quaternion entry 0 also denoted as a.

    Declaration

    Swift

    public let w: Float
  • x

    Quaternion entry 1 also denoted as b.

    Declaration

    Swift

    public let x: Float
  • y

    Quaternion entry 2 also denoted as c.

    Declaration

    Swift

    public let y: Float
  • z

    Quaternion entry 3 also denoted as d.

    Declaration

    Swift

    public let z: Float
  • Declaration

    Swift

    public static func == (lhs: Quaternion, rhs: Quaternion) -> Bool