mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Correct sign in mat4x4_rotate_Y
Signs were incorrect in mat4x4_rotate_Y.
Closes #1673.
(cherry picked from commit 67c720d117
)
This commit is contained in:
parent
10c01512f2
commit
e145d89a96
4
deps/linmath.h
vendored
4
deps/linmath.h
vendored
@ -237,9 +237,9 @@ static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle)
|
|||||||
float s = sinf(angle);
|
float s = sinf(angle);
|
||||||
float c = cosf(angle);
|
float c = cosf(angle);
|
||||||
mat4x4 R = {
|
mat4x4 R = {
|
||||||
{ c, 0.f, s, 0.f},
|
{ c, 0.f, -s, 0.f},
|
||||||
{ 0.f, 1.f, 0.f, 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}
|
{ 0.f, 0.f, 0.f, 1.f}
|
||||||
};
|
};
|
||||||
mat4x4_mul(Q, M, R);
|
mat4x4_mul(Q, M, R);
|
||||||
|
Loading…
Reference in New Issue
Block a user