google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.
http://google.github.io/mathfu
Apache License 2.0
1.4k stars 188 forks source link

fix bug: Quaternion::LookAt #52

Open OttoX opened 2 years ago

OttoX commented 2 years ago

issue: #50 The Matrix<T, 3>::LookAt function‘s implementation is correct. but Quaternion's LookAt Function should not be based on function Matrix::LookAt(...). Here is the glm's implementation about quaternion lookat function. https://github.com/g-truc/glm/blob/master/glm/gtc/quaternion.inl