MeleeGetProjectedLoc

Parameters
srclocation
targlocation
distancereal
deltaAnglereal
comment
note

It returns a new location, does not remove or alter location passed as src or targ. It means you must call RemoveLocation yourself after calling this function.

patch

1.00

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