assignment3/a3.cpp
float GetDistanceBetween(Ship* a, Ship* b) {
	float tx = b->x - a->x;
	float ty = b->y - a->y;
	
	return sqrtf(tx*tx + ty*ty);
}
// This function gets the distance as a float from ship a to ship b. 
This function gets the distance as a float from ship a to ship b.
This function gets the distance as a float from ship a to ship b .
float GetDistanceBetween(Ship* a, Ship* b) {
	float tx = b->x - a->x;
	float ty = b->y - a->y;
	return sqrtf(tx*tx + ty*ty);
}
float GetDistanceBetween ( Ship * a , Ship * b ) { float tx = b -> x - a -> x ; float ty = b -> y - a -> y ; return sqrtf ( tx * tx + ty * ty ) ; }
This function gets the distance as a float from ship a to ship b.
This function gets the distance as a float from ship a to ship b .