Jass:MeleeGetLocWithinRect
Aus Mappedia
| 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 |
