GeoBoxMaker implements BoxMaker { public static double radiansToDegrees(double radians) { return (radians * 180) / Math.PI; } GeoBoxMaker(DistanceUnits units); @Override // http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates Box<N> make(Point<N> center,
            N radius); static double degreesToRadians(double degrees); static double radiansToDegrees(double radians); static double kilometersToRadians(double kilometers); static double milesToRadians(double miles);  }
@Test public void radiansToDegrees() { assertEquals(180D, GeoBoxMaker.radiansToDegrees(Math.PI), 0); assertEquals(360D, GeoBoxMaker.radiansToDegrees(2 * Math.PI), 0); }