Function DistanceBetweenPoints
| 808 | function DistanceBetweenPoints takes location locA, location locB returns real |
| 809 | local real dx = GetLocationX(locB) - GetLocationX(locA) |
| 810 | local real dy = GetLocationY(locB) - GetLocationY(locA) |
| 811 | return SquareRoot(dx * dx + dy * dy) |
| 812 | endfunction
|