mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
8aabb704d2
commit
890223ef8e
1 changed files with 1 additions and 1 deletions
|
@ -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 { \
|
||||
|
|
Loading…
Reference in a new issue