StrictMath.atan2(double y, double x) has the following syntax.
public static double atan2(double y, double x)
In the following code shows how to use StrictMath.atan2(double y, double x) method.
//from w ww.j a va 2 s. c o m public class Main { public static void main(String[] args) { double d1 = 0.6 , d2 = 90.00; System.out.println("arc tangent value after conversion = " + StrictMath.atan2(d1, d2)); System.out.println("arc tangent value after conversion = " + StrictMath.atan2(d2 , d1)); } }
The code above generates the following result.