<< Previous | Next >> | |
|
float atan2( float y, float x );
Description
- Computes the arctangent of real
float
valuey/x
to find the angle in radians between the x-axis and the ray through (0,0) and (x,y).
NOTE The Dynamic C functions deg and rad convert radians and degrees. Parameters
- y
- The point corresponding to the y-axis
- x
- The point corresponding to the x-axis
Return value
- If both
y
andx
are zero, the function returns0
and signals a domain error. Otherwise the arctangent ofy/x
is returned as follows:Library
- MATH.LIB
See also
- acos, asin, atan, cos, sin, tan
Dynamic C Functions | << Previous | Next >> | rabbit.com |