aboutsummaryrefslogtreecommitdiff
path: root/linear_algebra.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-10 11:44:44 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-10 17:53:02 +0100
commit988e058680280e25d345b17d840c3c6d40e30a76 (patch)
tree0cdb0fe6bbf2b3a55edb5347d35aadf6576876c1 /linear_algebra.c
parent2875f205e24f19964d44ddce2470659d21fe902d (diff)
downloadcub3d-988e058680280e25d345b17d840c3c6d40e30a76.tar.gz
cub3d-988e058680280e25d345b17d840c3c6d40e30a76.tar.bz2
cub3d-988e058680280e25d345b17d840c3c6d40e30a76.zip
refactoring
Diffstat (limited to 'linear_algebra.c')
-rw-r--r--linear_algebra.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/linear_algebra.c b/linear_algebra.c
deleted file mode 100644
index 881f8ff..0000000
--- a/linear_algebra.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* linear_algebra.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/11/18 01:28:01 by cacharle #+# #+# */
-/* Updated: 2019/11/18 01:32:41 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "cub3d.h"
-
-t_vector vector_add(t_vector a, t_vector b)
-{
- a.x += b.x;
- a.y += b.y;
- return a;
-}
-
-t_vector vector_scale(t_vector v, double scalar)
-{
- v.x *= scalar;
- v.y *= scalar;
- return v;
-}
-
-/*
-** rotate counter clockwise
-*/
-
-t_vector vector_rotate(t_vector v, double angle)
-{
- t_vector rotated;
-
- rotated.x = cos(angle) * v.x - sin(angle) * v.y;
- rotated.y = sin(angle) * v.x + cos(angle) * v.y;
- return (rotated);
-}