Quaternion.opCast

Converts a to a 4x4 rotation matrix.

  1. U opCast()
  2. U opCast()
    struct Quaternion(T)
    @nogc pure const nothrow
    U
    opCast
    (
    U
    )
    ()
    if (
    is(U._T : _T)
    &&
    (U._R == 4)
    &&
    (U._C == 4)
    )

Bugs

check why we can't do is(Unqual!U == mat4!T)

Meta