HaversineDistance extends FastDistance { static double degreeToRadian(double data) { return data * DEGREE_TO_RADIAN_CONSTANT; }  double calc(double latitude1, double longitude1, double latitude2, double longitude2); @Override double calc(double[] array1, double[] array2); @Override double calc(Vector vec1, Vector vec2); @Override void updateLabel(FastDistanceData data);  }
@Test public void testDegreeToRadian() { Assert.assertEquals(Math.PI / 2, HaversineDistance.degreeToRadian(90), 0.001); }