Correct the definition of DualQuatNorm.

I'd gotten the norm and magnitude mixed up (partly because the document I
was following got the names mixed up), and then munged the formulas
together.
This commit is contained in:
Bill Currie 2012-05-01 21:46:09 +09:00
parent 8aabb704d2
commit 890223ef8e

View file

@ -390,7 +390,7 @@ extern const vec_t *const quat_origin;
#define DualQuatNorm(a,b) \
do { \
(b).r = QuatLength ((a).q0.q); \
(b).e = QDotProduct ((a).q0.q, (a).qe.q) / (b).r; \
(b).e = 2 * QDotProduct ((a).q0.q, (a).qe.q); \
} while (0)
#define DualQuatScale(a,b,c) \
do { \