Quaternion.this

Creates a new Quaternion from Euler angles Params : roll = Rotation around X axis in radians (aka bank) pitch = Rotation around Y axis in radians (aka attitude) yaw = Rotation around Z axis in radians (aka heading)

  1. this(T i, T j, T k, T w)
  2. this(T[] xs)
  3. this(Vector!(T, 3) vec)
  4. this(Vector!(T, 4) vec)
  5. this(Vector!(T, 3) v, U angle)
  6. this(U roll, U pitch, U yaw)
    struct Quaternion(T = floatt)
    nothrow @nogc
    this
    (
    U
    )
    (,,
    U yaw
    )
    if (
    __traits(isFloating, U)
    )
    if (
    __traits(isFloating, T)
    )

Return Value

Quaternion that represents a rotation

Meta