quakeforge/include/QF/math
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
..
dual.h Update for doxygen 1.8.16 2020-02-11 15:20:49 +09:00
half.h Update for doxygen 1.8.16 2020-02-11 15:20:49 +09:00
matrix3.h Update for doxygen 1.8.16 2020-02-11 15:20:49 +09:00
matrix4.h Update for doxygen 1.8.16 2020-02-11 15:20:49 +09:00
quaternion.h [util] Calculate quaternion to rotate between two vectors 2020-12-21 14:14:10 +09:00
vector.h Update for doxygen 1.8.16 2020-02-11 15:20:49 +09:00