Quaternion

    A unit quaternion used for representing 3D rotations.

    Quaternion.swift:13
    struct Quaternion

    Quaternions are similar to Basis, which implements the matrix representation of rotations. Unlike Basis, which stores rotation, scale, and shearing, quaternions only store rotation.

    Quaternions can be parametrized using both an axis-angle pair or Euler angles. Due to their compactness and the way they are stored in memory, certain operations (obtaining axis-angle and performing SLERP, in particular) are more efficient and robust against floating-point errors.

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features