<< Geometrie Geometrie sphere >>

scilib_geo >> Geometrie > atan2

atan2

Richtungswinkel t0 im geodätischen Systemen, atan() über 4 Quadranten im Intervall von (0, 2п)

Calling Sequence

[tangle] = atan2(yin, xin)

Parameters

yin, xin

Koordinaten y und x, Skalar oder Vektoren gleicher Größe [ ]

tangle

Richtungswinkel t0, Skalar oder Matrix [rad]

Description

Berechnet den Richtungswinkel t0. Die Messung des Winkels in der Geodäsie erfolgt im Gegensatz zur Mathematik im Uhrzeigersinn. Deshalb sind die Quadranten in umgekehrter Reihenfolge nummeriert.

Quadrant x, y Richtungswinkel t
x > 0, y = 0 t = 0
x, y > 0 0 < t < π/2
x = 0, y > 0 t = π/2
x < 0, y > 0 π/2 < t < π
x < 0, y = 0 t = π
x, y < 0 π < t < 1.5⋅π
x = 0, y < 0 t = 1.5⋅π
x > 0, y < 0 1.5⋅π < t < 2⋅π

Examples

x = [ 1 0 -1 ];
y = [ 1 -1 0 ];
atan2(y, x)

See Also

Authors


Report an issue
<< Geometrie Geometrie sphere >>