Jass:PolarProjectionBJ – Mappedia

Jass:PolarProjectionBJ

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



Code

function PolarProjectionBJ takes location source, real dist, real angle returns location
    local real x = GetLocationX(source) + dist * Cos(angle * bj_DEGTORAD)
    local real y = GetLocationY(source) + dist * Sin(angle * bj_DEGTORAD)
    return Location(x, y)
endfunction

Parameter

Typ Name Beschreibung
location source
real dist
real angle
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge