Sam Hocevar
|
cb62b52ce6
|
math: add quat::axis() and quat::angle() to retrieve axis and angle from a
quaternion, improve quat::rotate(vec3, vec3) to gracefully handle corner
cases, and add unit tests for all of these.
|
10 years ago |
Sam Hocevar
|
353d0a4417
|
math: last pass (hopefully) at the quaternion/euler conversions.
|
11 years ago |
Sam Hocevar
|
d5d73330e8
|
math: more quaternion to Euler angles fixes, plus unit tests.
|
11 years ago |
Sam Hocevar
|
9ecd579593
|
math: fix quaternion to euler conversion and add unit tests.
|
11 years ago |
Sam Hocevar
|
c6e453fe5c
|
math: add unit tests for quat::rotate(vec3, vec3).
|
11 years ago |
Sam Hocevar
|
e848af3f2a
|
math: fix an error in the quaternion code and update test suite.
|
11 years ago |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
12 years ago |
Sam Hocevar
|
f2c269cb1e
|
math: add dot() for quaternions, plus the relevant unit test.
|
12 years ago |
Sam Hocevar
|
c276dbb1ff
|
math: allow to write 1.f / q to take a quaternion's inverse.
|
12 years ago |
Sam Hocevar
|
9e9c18d37e
|
test: add several unit tests for rotations with matrices and quaternions.
|
12 years ago |
Sam Hocevar
|
8325d8889c
|
math: chage quaternion constructor to wxyz order because it matches the
mathematical writing, and add static constructors to create quaternions
from a rotation.
|
12 years ago |
Sam Hocevar
|
d38a79ee3d
|
math: move most vector and matrix member functions to global functions.
|
13 years ago |
Sam Hocevar
|
2d3ee50da3
|
test: do not test for strict doubles equality in quaternion unit test.
|
13 years ago |
Sam Hocevar
|
3dde22ea62
|
test: add missing quaternion unit tests.
|
13 years ago |