![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Angle of a vector in radians. Pass y first and x second to preserve the quadrant. Based on Here atan2
klang::atan2std::atan2.Direct call
const signal angle = atan2(y, x);Signal flow
x is a float. Its current value supplies the second operand.const signal angle = y >> atan2(x);