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 ));
See Implementation