Atan2

Returns the arctangent of a ratio

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction ATan2 ( KeyPgByvalByVal y KeyPgAsAs KeyPgDoubleDouble, KeyPgByvalByVal x KeyPgAsAs KeyPgDoubleDouble ) KeyPgAsAs KeyPgDoubleDouble

Usage
	result = ATan2( y, x )

Parameters
	y
		Vertical component of the ratio.
	x
		Horizontal component of the ratio.

Return Value
	The angle whose tangent is y/x, in radians, in the range [-Pi..Pi].

Description
	ATan2 returns the arctangent of the ratio y/x as a KeyPgDoubleDouble within the 
	range of -TutMathAnglesPi to TutMathAnglesPi.  The arctangent is the inverse of the KeyPgTanTan function. 
	The returned angle is measured in TutMathAnglesradians (not TutMathAnglesdegrees).

	ATan2 cannot be overloaded as operator to accept user-defined types.

Example
	Print Atan2 ( 4, 5 )     'this is the same as PRINT ATN ( 4 / 5 )

The output would be:

	0.6747409422235527

Differences from QB
	* New to FreeBASIC

Dialect Differences
	* Not available in the CompilerOptlang-lang qb dialect unless referenced with the 
	  alias __Atan2.

See also
	* KeyPgTanTan
	* KeyPgAtnAtn
	* TutMathIntroTrigA Brief Introduction To Trigonometry

