diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2014-09-23 14:32:05 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2014-09-23 14:32:05 +0200 |
commit | 5fd4a228ade0918d00f3fe37227c827f0075b0f4 (patch) | |
tree | 361ca954e146e39bd4b2da3288caca781c427b04 | |
parent | 2e4814b7a7f97a40f7c05f8969f2f2e4f394c5aa (diff) | |
download | linmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.tar.gz linmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.tar.xz linmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.zip |
fixed an issue that popped up in StackOverflow, thanks @klueless
-rw-r--r-- | linmath.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -532,9 +532,9 @@ static inline void mat4x4_from_quat(mat4x4 M, quat q) } static inline void mat4x4_mul_quat(mat4x4 R, mat4x4 M, quat q) { - quat_mul_vec3(R[0], M[0], q); - quat_mul_vec3(R[1], M[1], q); - quat_mul_vec3(R[2], M[2], q); + quat_mul_vec3(R[0], q, M[0]); + quat_mul_vec3(R[1], q, M[1]); + quat_mul_vec3(R[2], q, M[2]); R[3][0] = R[3][1] = R[3][2] = 0.f; R[3][3] = 1.f; |