Math.atan2
Class Overview | Class Members |
This Package |
All Packages
public static native double atan2( double a,
double b )
Parameters
- a
- a double value.
- b
- a double value.
Returns
the theta component of the point
(r, theta)
in polar coordinates that corresponds to the point
(b, a) in Cartesian coordinates.
Description
Converts rectangular coordinates (b, a)
to polar (r, theta).
This method computes the phase theta by computing an arc tangent
of b/a in the range of -pi to pi.