Quaternion.this

Build a new Quaternion from a set of initial values

  1. this(T i, T j, T k, T w)
    struct Quaternion(T = floatt)
    nothrow
    this
    (
    in T i
    ,
    in T j
    ,
    in T k
    ,
    in T w
    )
    if (
    __traits(isFloating, T)
    )
  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)

Parameters

i T

i imaginary component

j T

j imaginary component

k T

k imaginary component

w T

i real component

Meta