Quaternion.this

Creates a Quaternion from a 3d Vector and angle

  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)
    struct Quaternion(T = floatt)
    nothrow @nogc
    this
    (
    U
    )
    (
    Vector!(T, 3) v
    ,)
    if (
    is(U : real)
    )
    if (
    __traits(isFloating, T)
    )
  6. this(U roll, U pitch, U yaw)

Parameters

v Vector!(T, 3)

Rotation axis

angle U

Rotation angle in radians

Return Value

Quaternion that represents a rotation

Meta