mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
62f3e1f428
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. |
||
---|---|---|
.. | ||
Makemodule.am | ||
test-bary.c | ||
test-cs.c | ||
test-darray.c | ||
test-dq.c | ||
test-half.c | ||
test-mat3.c | ||
test-mat4.c | ||
test-plist.c | ||
test-qfs.c | ||
test-quat.c | ||
test-seb.c | ||
test-seg.c | ||
test-set.c | ||
test-txtbuffer.c | ||
test-vrect.c |