From 7b214503608550dc2853b9e01526723f8c65baf3 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 12 May 2020 14:14:06 +0200 Subject: Added mat4 in libftm, can rotate, scale and translate vector --- vendor/libftm/inc/libftm_vec3.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vendor/libftm/inc/libftm_vec3.h (limited to 'vendor/libftm/inc/libftm_vec3.h') diff --git a/vendor/libftm/inc/libftm_vec3.h b/vendor/libftm/inc/libftm_vec3.h new file mode 100644 index 0000000..e9df2c7 --- /dev/null +++ b/vendor/libftm/inc/libftm_vec3.h @@ -0,0 +1,23 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* libftm_vec3.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/05/12 11:02:29 by charles #+# #+# */ +/* Updated: 2020/05/12 11:04:08 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef LIBFTM_VEC3_H +# define LIBFTM_VEC3_H + +typedef struct +{ + float v[3]; +} t_ftmvec3; + +t_ftmvec3 *ftm_vec3init(t_ftmvec3 *vec3, float x, float y, float z); + +#endif -- cgit