DistanceBetweenPoints

Parameters
locA location
locB location
comment
patch

1.00

Source
Blizzard.j (suggest an edit or discuss on Github)
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