// EARTH_VOLUMETRIC_MEAN_RADIUS = 6371000 m
Spheres.EARTH = new Sphere(6371000);
...
Geographic2dCoordinate from = new Geographic2dCoordinate(0, 0);
Geographic2dCoordinate to = new Geographic2dCoordinate(90, 0);
Geographic2dCoordinate point = new Geographic2dCoordinate(0, 45);
double distance = new CrossTrackOrthodromeDistance(Spheres.EARTH)
.distance(point, from, to);
double circumferenceEarth = 2 * Math.PI
* Spheres.EARTH.getRadius();
// point is on equator, distance should be 1/8 of earth circumference
assertEquals(circumferenceEarth / 8, distance, 0d);
AssertionError: expected:<5003771.699005143> but was:<87332.29116575043>