GeoBoxMaker implements BoxMaker { public static double degreesToRadians(double degrees) { return (degrees * Math.PI) / 180; } 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 degreesToRadians() { assertEquals(Math.PI, GeoBoxMaker.degreesToRadians(180D), 0); assertEquals(2 * Math.PI, GeoBoxMaker.degreesToRadians(360D), 0); }