diff --git a/lib/global_objects.c b/lib/global_objects.c index e6f8de5..74abb86 100644 --- a/lib/global_objects.c +++ b/lib/global_objects.c @@ -25,20 +25,6 @@ void point_mul(Point *A, Point *B){ A->y = A->y * B->y; } -/* -fn set_mag(x: &f64,y: &f64, mag: &f64) -> Vec{ - let getmag: f64 = magnitude(*x, *y); - let rx = (*x / getmag) * mag; - let ry = (*y / getmag) * mag; - - return vec![rx,ry] -} - -fn magnitude(x: f64,y: f64) -> f64 { - ((x).powi(2) + (y).powi(2)).sqrt() -} -*/ - float magnitude(flaot x, flaot y) { return sqrt((pow(x,2) + pow(y,2))); } diff --git a/lib/init.c b/lib/init.c index 6c4f314..3880c6d 100755 --- a/lib/init.c +++ b/lib/init.c @@ -1,6 +1,6 @@ #include #include -#include "init.h" +#include #include #include diff --git a/src/1-1-walker.c b/src/1-1-walker.c index 5a905f0..fc67340 100755 --- a/src/1-1-walker.c +++ b/src/1-1-walker.c @@ -1,7 +1,5 @@ -#include #include #include -#include #include #include diff --git a/src/1-2-vec-math.c b/src/1-2-vec-math.c index d6f38b1..cf9a8cb 100755 --- a/src/1-2-vec-math.c +++ b/src/1-2-vec-math.c @@ -1,8 +1,5 @@ -#include -#include #include -#include -#include "global_objects.c" +#include #include #include diff --git a/src/1-3-rand-vec.c b/src/1-3-rand-vec.c index 9c5f44f..f592fdc 100755 --- a/src/1-3-rand-vec.c +++ b/src/1-3-rand-vec.c @@ -1,8 +1,6 @@ -#include #include #include -#include -#include "global_objects.c" +#include #include #include