MeleeGetLocWithinRect

Parameters
src location
r rect
return type
location
Source code
function MeleeGetLocWithinRect takes location src, rect r returns location
    local real withinX = MeleeGetNearestValueWithin(GetLocationX(src), GetRectMinX(r), GetRectMaxX(r))
    local real withinY = MeleeGetNearestValueWithin(GetLocationY(src), GetRectMinY(r), GetRectMaxY(r))
    return Location(withinX, withinY)
endfunction
Source
Blizzard.j
wc3modding.com
MeleeGetLocWithinRect