MeleeGetProjectedLoc

Parameters
src location
targ location
distance real
deltaAngle real
return type
location
Source code
function MeleeGetProjectedLoc takes location src, location targ, real distance, real deltaAngle returns location
    local real srcX = GetLocationX(src)
    local real srcY = GetLocationY(src)
    local real direction = Atan2(GetLocationY(targ) - srcY, GetLocationX(targ) - srcX) + deltaAngle
    return Location(srcX + distance * Cos(direction), srcY + distance * Sin(direction))
endfunction
Source
Blizzard.j
wc3modding.com
MeleeGetProjectedLoc