public static native double atan2 (double y, double x)

Returns the angle theta from the conversion of rectangular coordinates ( x y) to polar coordinates (r, theta). This method computes the phase theta by computing an arc tangent of y/x in the range of -pi to pi. Special cases:

Parameters:
y    the ordinate coordinate
x    the abscissa coordinate

Returns:  the theta component of the point (rtheta) in polar coordinates that corresponds to the point (xy) in Cartesian coordinates.