cleanup
This commit is contained in:
@@ -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<f64>{
|
||||
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)));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include "init.h"
|
||||
#include <init.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_video.h>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_video.h>
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
#include "global_objects.c"
|
||||
#include <global_objects.c>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_video.h>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
#include "global_objects.c"
|
||||
#include <global_objects.c>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_video.h>
|
||||
|
||||
Reference in New Issue
Block a user