@Test public void testKnownAzimuthC() { LatLon begin = LatLon.fromDegrees(-32.0000, 116.0000); LatLon end = LatLon.fromDegrees(23.0000, 122.0000); Angle theta = LatLon.ellipsoidalForwardAzimuth( begin, end, globe.getEquatorialRadius(), globe.getPolarRadius()); assertEquals("Known ellipsoidal Azimuth C", 6.75777, theta.degrees, TOLERANCE); }
@Test public void testKnownAzimuthA() { LatLon begin = LatLon.fromDegrees(30.000000, -102.000000); LatLon end = LatLon.fromDegrees(34.000000, -97.000000); Angle theta = LatLon.ellipsoidalForwardAzimuth( begin, end, globe.getEquatorialRadius(), globe.getPolarRadius()); assertEquals("Known ellipsoidal Azimuth A", 45.50583, theta.degrees, TOLERANCE); }
@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); }