quakeforge/libs/util/test
Bill Currie 62f3e1f428 [util] Calculate quaternion to rotate between two vectors
The calculation fails (produces NaN) if the vectors are anti-parallel,
but works for all other combinations. I came up with this implementation
when I discovered Unity's Quaternion.FromToRotation could did not work
with very small angles. This implementation will produce a usable
quaternion below 0.00255 degrees (though it will be slightly larger than
unit). Unity's failed such that I could see KSP's skybox snap while it
rotated around my test vessel.
2020-12-21 14:14:10 +09:00
..
Makemodule.am [util] Make a minor improvement to QuatMultVec 2020-12-21 14:13:57 +09:00
test-bary.c Better (-1..1) random numbers. 2013-03-13 14:41:04 +09:00
test-cs.c Catch accuracy errors. 2013-03-13 17:16:34 +09:00
test-darray.c [util] Fix darray test for gcc purity 2020-03-20 12:59:25 +09:00
test-dq.c Add tests for inverting a dual quad transform. 2012-05-15 21:08:43 +09:00
test-half.c Add support for half floats. 2012-04-26 20:55:11 +09:00
test-mat3.c Switch QF's quaterions from wxyz to xyzw. 2018-10-12 14:33:55 +09:00
test-mat4.c mat4 test case fixes. 2018-08-26 15:06:08 +09:00
test-plist.c Correct an apparent typo 2020-02-17 12:58:23 +09:00
test-qfs.c Fix some issues found found by valgrind. 2012-01-24 19:54:21 +09:00
test-quat.c [util] Calculate quaternion to rotate between two vectors 2020-12-21 14:14:10 +09:00
test-seb.c [util] Rework SEB affine/convex testing 2020-06-21 17:07:54 +09:00
test-seg.c Add tests for chunk line numbers. 2014-01-28 16:22:03 +09:00
test-set.c Use set_bits_t for holding set elements. 2013-03-16 21:26:49 +09:00
test-txtbuffer.c Add a buffer-gap text buffer 2020-02-24 17:30:33 +09:00
test-vrect.c Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00