![]() |
|
| << Previous | Next >> | |
| | |
float atan2( float y, float x );
Description
- Computes the arctangent of real
floatvaluey/xto 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
yandxare zero, the function returns0and signals a domain error. Otherwise the arctangent ofy/xis returned as follows:Library
- MATH.LIB
See also
- acos, asin, atan, cos, sin, tan
| Dynamic C Functions | << Previous | Next >> | rabbit.com |