scene_loader.c
double GetDistance(int x1, int y1, int x2, int y2){
	int y_dist = abs(y2-y1);
	int x_dist = abs(x2-x1);
	printf("y_dist = %d  x_dist = %d\n", y_dist, x_dist);
	double distance =  ((double)sqrt(y_dist*y_dist + x_dist*x_dist));
	printf("Distance calculated: %f\n", distance);
	return distance;
}
/*  This function calculates distance between two points {x1,y1,x2,y2}  */
This function calculates distance between two points {x1,y1,x2,y2}
This function calculates distance between two points { x1 y1 x2 y2 }
double GetDistance(int x1, int y1, int x2, int y2){
	int y_dist = abs(y2-y1);
	int x_dist = abs(x2-x1);
	printf("y_dist = %d  x_dist = %d\n", y_dist, x_dist);
	double distance =  ((double)sqrt(y_dist*y_dist + x_dist*x_dist));
	printf("Distance calculated: %f\n", distance);
	return distance;
}
double GetDistance ( int x1 , int y1 , int x2 , int y2 ) { int y_dist = abs ( y2 - y1 ) ; int x_dist = abs ( x2 - x1 ) ; printf ( " \n " , y_dist , x_dist ) ; double distance = ( ( double ) sqrt ( y_dist * y_dist + x_dist * x_dist ) ) ; printf ( " \n " , distance ) ; return distance ; }
This function calculates distance between two points {x1,y1,x2,y2}
This function calculates distance between two points { x1 y1 x2 y2 }