static double[] cari(double r, double theta) { theta = (theta / 180) * Math.PI; return new double[]{r * Math.cos(theta), r * Math.sin(theta)}; }