Jass:MeleeGetProjectedLoc
Aus Mappedia
| Funktion: MeleeGetProjectedLoc | |
|---|---|
| Parameter: | location location real real |
| Rückgabewert: | location |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
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
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| location | src | |
| location | targ | |
| real | distance | |
| real | deltaAngle |
