Jass:MeleeGetLocWithinRect – Mappedia

Jass:MeleeGetLocWithinRect

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: MeleeGetLocWithinRect
Parameter: location
rect
Rückgabewert: location
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



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

Parameter

Typ Name Beschreibung
location src
rect r
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge