Quaternion.this

Build a new Quaternion from a 3D Vector w will be set to 1

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

Parameters

vec Vector!(T, 3)

Vector 3d

Meta