/*
* Test the ellipsoidal model.
*/
assertEquals("Nautical mile at equator", 1842.78, e.orthodromicDistance(0, 00-hm, 0, 00+hm), 0.2);
assertEquals("Nautical mile at North pole", 1861.67, e.orthodromicDistance(0, 90-2*hm, 0, 90), 0.2);
assertEquals("Nautical mile at South pole", 1861.67, e.orthodromicDistance(0, 2*hm-90, 0, -90), 0.2);
assertEquals("International nautical mile", 1852.00, e.orthodromicDistance(0, 45-hm, 0, 45+hm), 0.2);
for (double i=0.01; i<180; i+=1) {
final double base = 180*random.nextDouble()-90;
assertEquals(i+"° rotation", e.getSemiMajorAxis()*Math.toRadians(i),
e.orthodromicDistance(base, 0, base+i, 0), 0.2);