From 723c4602c6ec9b74e841501754e651ef359f6385 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 12 May 2020 19:11:40 +0200 Subject: Added perspective matrix --- vendor/libftm/src/mat4/ftm_mat4rotate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vendor/libftm/src/mat4/ftm_mat4rotate.c') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); -- cgit