The search keyword must be a single word (no spaces).
Function DistanceBetweenPoints
- Line
- 808
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- location locA, location locB
- Returns
- real
| 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
|