Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
atan2

Language Guide / Functions ยท Generated namespace reference

atan2

klang::atan2

Angle of a vector in radians.

Pass y first and x second to preserve the quadrant.

-2.5-1.19-1.25-0.595001.250.5952.51.19ResultInput y
atan2(y, 1)

Based on std::atan2.

Direct call

const signal angle = atan2(y, x);

Signal flow

Here x is a float. Its current value supplies the second operand.

const signal angle = y >> atan2(x);