aboutsummaryrefslogtreecommitdiff
path: root/vendor/libftm/src/vec3/ftm_vec3cross.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-11 13:29:51 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-11 13:29:51 +0200
commitd07d87964f13d3c1e6ad8c2f6d7db21101f1ef34 (patch)
tree52dd2e82580eb3c70201991b53a2a2b4c434908b /vendor/libftm/src/vec3/ftm_vec3cross.c
parent0700a8f567ab733a57fe688e45e5092d3fa1c1a0 (diff)
downloadscop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.tar.gz
scop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.tar.bz2
scop-d07d87964f13d3c1e6ad8c2f6d7db21101f1ef34.zip
libftm matrix, dynamic vector instead of fixed size
Diffstat (limited to 'vendor/libftm/src/vec3/ftm_vec3cross.c')
-rw-r--r--vendor/libftm/src/vec3/ftm_vec3cross.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/libftm/src/vec3/ftm_vec3cross.c b/vendor/libftm/src/vec3/ftm_vec3cross.c
deleted file mode 100644
index c27534e..0000000
--- a/vendor/libftm/src/vec3/ftm_vec3cross.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ftm_vec3cross.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/05/09 21:20:41 by charles #+# #+# */
-/* Updated: 2020/05/09 21:25:44 by charles ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libftm_vec3.h"
-
-/*
-** s1 = a2 * b3 - a3 * b2
-** s2 = a3 * b1 - a1 * b3
-** s3 = a1 * b2 - a2 * b1
-*/
-
-void ftm_vec3cross(t_ftmvec3 *dst, t_ftmvec3 *a, t_ftmvec3 *b)
-{
- dst->v[0] = a->v[1] * b->v[2] - a->v[2] * b->v[1];
- dst->v[1] = a->v[2] * b->v[0] - a->v[0] * b->v[2];
- dst->v[2] = a->v[0] * b->v[1] - a->v[1] * b->v[0];
-}