aboutsummaryrefslogtreecommitdiff
path: root/vendor/libftm/src/mat4/ftm_mat4rotate.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-12 19:11:40 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-12 19:11:40 +0200
commit723c4602c6ec9b74e841501754e651ef359f6385 (patch)
treed6dd27c251871fb61e3fc99fe7a0a96438096f1d /vendor/libftm/src/mat4/ftm_mat4rotate.c
parent7b214503608550dc2853b9e01526723f8c65baf3 (diff)
downloadscop-723c4602c6ec9b74e841501754e651ef359f6385.tar.gz
scop-723c4602c6ec9b74e841501754e651ef359f6385.tar.bz2
scop-723c4602c6ec9b74e841501754e651ef359f6385.zip
Added perspective matrix
Diffstat (limited to 'vendor/libftm/src/mat4/ftm_mat4rotate.c')
-rw-r--r--vendor/libftm/src/mat4/ftm_mat4rotate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/libftm/src/mat4/ftm_mat4rotate.c b/vendor/libftm/src/mat4/ftm_mat4rotate.c
index 0a39c16..6d0432e 100644
--- a/vendor/libftm/src/mat4/ftm_mat4rotate.c
+++ b/vendor/libftm/src/mat4/ftm_mat4rotate.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/05/12 11:44:18 by charles #+# #+# */
-/* Updated: 2020/05/12 14:05:18 by charles ### ########.fr */
+/* Updated: 2020/05/12 17:07:23 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -46,8 +46,8 @@ t_ftmmat4 *ftm_mat4rotate(t_ftmmat4 *mat4, float theta, t_ftmvec3 *axis)
x = axis->v[0];
y = axis->v[1];
z = axis->v[2];
- sin_t = sin(theta);
- cos_t = cos(theta);
+ sin_t = sinf(theta);
+ cos_t = cosf(theta);
ftm_mat4init_fill(&rot, 0.0);
ftm_mat4set(&rot, 0, 0, cos_t + x * x * (1 - cos_t));
ftm_mat4set(&rot, 1, 0, y * x * (1 - cos_t) + z * sin_t);