diff options
author | datenwolf <code+github@datenwolf.net> | 2020-04-16 12:21:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 12:21:47 +0200 |
commit | 382ba71905c2c09f10684d19cb5a3fcadf1aba39 (patch) | |
tree | 3521c65754c077890d6a47750f3831f8a2505216 | |
parent | e03c3ee576fd3ebf5bdb24164724ae86bc2c1f83 (diff) | |
parent | bffc567bd47283b4b53b0aef36dd20421ba31224 (diff) | |
download | linmath.h-382ba71905c2c09f10684d19cb5a3fcadf1aba39.tar.gz linmath.h-382ba71905c2c09f10684d19cb5a3fcadf1aba39.tar.bz2 |
Merge pull request #39 from gre-42/master
Correct sign in mat4x4_rotate_Y
-rw-r--r-- | linmath.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -250,9 +250,9 @@ LINMATH_H_FUNC void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) float s = sinf(angle); float c = cosf(angle); mat4x4 R = { - { c, 0.f, s, 0.f}, + { c, 0.f, -s, 0.f}, { 0.f, 1.f, 0.f, 0.f}, - { -s, 0.f, c, 0.f}, + { s, 0.f, c, 0.f}, { 0.f, 0.f, 0.f, 1.f} }; mat4x4_mul(Q, M, R); |