Package java.lang
Class Math

Public Method atan2

static float atan2(float a, float b)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Converts rectangular coordinates (a, b) to polar (r, theta) coordinates. This method computes the phase theta by computing an arc tangent of a/b in the range of -pi to pi.

Note

Example

   Draw.writeText("atan2: " + Math.atan2(0.02344f), 0.45632f));

The example above draws the calculated value to the screen.