Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (7 sloc) 256 Bytes
double distance_2_points(float x1, float y1, float x2, float y2) {
float distance;
float distance_x = x1 - x2;
float distance_y = y1 - y2;
distance = sqrt((distance_x * distance_x) + (distance_y * distance_y));
return distance;
}
Something went wrong with that request. Please try again.