the distance of two points

Write your question here.
how to work out the distance of two points
double distance = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
Topic archived. No new replies allowed.