Jass:DistanceBetweenPoints
Aus Mappedia
| Funktion: DistanceBetweenPoints | |
|---|---|
| Parameter: | location location |
| Rückgabewert: | real |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function DistanceBetweenPoints takes location locA, location locB returns real local real dx = GetLocationX(locB) - GetLocationX(locA) local real dy = GetLocationY(locB) - GetLocationY(locA) return SquareRoot(dx * dx + dy * dy) endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| location | locA | |
| location | locB |
