aboutsummaryrefslogtreecommitdiff
path: root/vendor/libftm/src/vec4/ftm_vec4add.c
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libftm/src/vec4/ftm_vec4add.c')
-rw-r--r--vendor/libftm/src/vec4/ftm_vec4add.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/libftm/src/vec4/ftm_vec4add.c b/vendor/libftm/src/vec4/ftm_vec4add.c
new file mode 100644
index 0000000..bf8ef1d
--- /dev/null
+++ b/vendor/libftm/src/vec4/ftm_vec4add.c
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ftm_vec4add.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/05/09 20:45:59 by charles #+# #+# */
+/* Updated: 2020/05/09 21:15:07 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libftm_vec4.h"
+
+t_ftmvec4 *ftm_vec4add(t_ftmvec4 *dst, t_ftmvec4 *other)
+{
+ dst->v[0] += other->v[0];
+ dst->v[1] += other->v[1];
+ dst->v[2] += other->v[2];
+ dst->v[3] += other->v[3];
+ return (dst);
+}