11.05.2011, 19:46
Try this one:
$distance = hypot($x1 - $x2, $y1 - $y2);
$time = ($distance * $unit_speed)/$server_speed;
Haven´t tried it
MfG Manuel
$distance = hypot($x1 - $x2, $y1 - $y2);
$time = ($distance * $unit_speed)/$server_speed;
Haven´t tried it
MfG Manuel