19-04-2010, 03:13 PM
وعليكم السلام ورحمة الله وبركاته
بالتوفيق.
PHP كود :
{
Use Distance function for detecting distance between 2 points.
XPos and YPos are coordinates of first point and X and Y are coordinates of second point.
}
uses Math;
// ...
function Distance(XPos, YPos, X, Y: Real): Real;
begin
Result:=sqrt(
Power(XPos-X,2)+Power(YPos-Y,2));
end;
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...

