Correct a comment.

The shear factors were listed next to scale... a tad confusing.
This commit is contained in:
Bill Currie 2012-08-04 10:47:46 +09:00
parent 130494f774
commit 848db2e306

View file

@ -635,8 +635,8 @@ void Mat4MultVec (const mat4_t a, const vec3_t b, vec3_t c);
void Mat4as3MultVec (const mat4_t a, const vec3_t b, vec3_t c); void Mat4as3MultVec (const mat4_t a, const vec3_t b, vec3_t c);
/** Decompose a column major matrix into its component transformations. /** Decompose a column major matrix into its component transformations.
This gives the matrix's rotation as a quaternion, shear, scale This gives the matrix's rotation as a quaternion, shear (XY, XZ, YZ),
(XY, XZ, YZ), and translation. Using the following sequence will give the scale, and translation. Using the following sequence will give the
same result as multiplying \a v by \a mat. same result as multiplying \a v by \a mat.
QuatMultVec (rot, v, v); QuatMultVec (rot, v, v);