Math387::ArcTan2 Function

double ArcTan2(const double Y, const double X);

Inverse tangens of Y/X.

#NameTypeDescription
1Yconst double
2Xconst double

Returns: Returns the inverse tangens of Y/X, and returns an angle in the correct quadrant.

Remarks:

The return value will fall in the closed interval [-PI,PI] radians.

Note
Math387::ArcTan is calculated as ArcTan2(1, X).

See Also: Math387::ArcTan, Math387::Tan
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler