예제 #1
0
 @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);
 }
예제 #2
0
 @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);
 }