# Distance

Arithmetics
5.1 OC
int
int x1 X coordinate of the first point.
int y1 Y coordinate of the first point.
int x2 X coordinate of the second point.
int y2 Y coordinate of the second point.
Calculates the distance between two points. Same as Sqrt((x2-x1)^2 + (y2-y1)^2;).
GetCursor
(0)->Message("Quick, you are only %d Clonks away from the goal!", Distance(GetX(GetCursor(0)), GetY(GetCursor(0)), 1000, 200));
Displays the distance of the clonk from point 1000/200.
ObjectDistance
Sven2
2001-11