예제 #1
0
 @Test
 public void testIssue141() throws OrekitException {
   AbsoluteDate date =
       new AbsoluteDate("2002-03-06T20:50:20.44188731559965033", TimeScalesFactory.getUTC());
   Frame frame = FramesFactory.getGTOD(IERSConventions.IERS_1996, true);
   OneAxisEllipsoid model =
       new OneAxisEllipsoid(
           Constants.WGS84_EARTH_EQUATORIAL_RADIUS, Constants.WGS84_EARTH_FLATTENING, frame);
   Vector3D point = new Vector3D(-6838696.282102453, -2148321.403361013, -0.011907944179711194);
   GeodeticPoint gp = model.transform(point, frame, date);
   Vector3D rebuilt = model.transform(gp);
   Assert.assertEquals(0.0, rebuilt.distance(point), 1.0e-15 * point.getNorm());
 }