@Test public void testKnownAzimuthD() { LatLon begin = LatLon.fromDegrees(51.5000, 0.0000); LatLon end = LatLon.fromDegrees(42.0000, -71.0000); Angle theta = LatLon.ellipsoidalForwardAzimuth( begin, end, globe.getEquatorialRadius(), globe.getPolarRadius()); assertEquals( "Known ellipsoidal Azimuth D", Angle.normalizedLongitude(Angle.fromDegrees(287.95372)).degrees, theta.degrees, TOLERANCE); }
@Test public void testKnownAzimuthB() { LatLon begin = LatLon.fromDegrees(9.0000, -79.0000); LatLon end = LatLon.fromDegrees(48.0000, -122.0000); Angle theta = LatLon.ellipsoidalForwardAzimuth( begin, end, globe.getEquatorialRadius(), globe.getPolarRadius()); assertEquals( "Known ellipsoidal Azimuth B", Angle.normalizedLongitude(Angle.fromDegrees(325.10111)).degrees, theta.degrees, TOLERANCE); }