DistanceBetweenPoints

Parameters
locA location
locB location
comment
patch

1.00

return type
real
Source 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
Source
Blizzard.j
wc3modding.com
DistanceBetweenPoints