PolarProjectionBJ

Parameters
source location
dist real
angle real
comment
patch

1.00

return type
location
Source code
function PolarProjectionBJ takes location source, real dist, real angle returns location
    local real x = GetLocationX(source) + dist * Cos(angle * bj_DEGTORAD)
    local real y = GetLocationY(source) + dist * Sin(angle * bj_DEGTORAD)
    return Location(x, y)
endfunction
Source
Blizzard.j
wc3modding.com
PolarProjectionBJ