toMat4x4

Undocumented in source. Be warned that the author may not have intended to support it.
pure nothrow @nogc @safe
toMat4x4
(
Q
)
(
Q q
)
if (
is(Q.valueType : float)
)

Examples

lenghtSquared, length and normalize through vector

quat q1 = quat( 1.0f, 2.0f, 3.0f, 4.0f );
quat q2 = quat( 1.0f, 2.0f, 3.0f, 4.0f );

q1.normalize();
assert( q1.vector == q2.normalized.vector );
//assert( q1.vector == q1.normalized.vector );
assert( almostEqual( q1.length, 1.0 ));

Meta