OrbitAtTime extends Orbit { public double getEccentricAnomaly() { calcEccentricAnomaly(); return _ea; } OrbitAtTime(Body body, double a, double e, double i, double lan, double aop, double ta);  OrbitAtTime(Orbit orbit, double ta);  OrbitAtTime(Body b, Vector3D rVec, Vector3D vVec);  OrbitAtTime(OrbitAtTime other); double getTrueAnomaly(); double getEccentricAnomaly(); double getMeanAnomaly(); Vector3D getRadiusVector(); Vector3D getVelocityVector(); double getRadius(); double getVelocity(); OrbitAtTime afterTime(double dt); double phaseAngleWith(OrbitAtTime oat);  }
@Test public void calcEccentricAnomaly1() { Body b = new Body("A", 1); double ta = Math.PI / 2; OrbitAtTime oat = new OrbitAtTime(b, 1, 0, 0, 0, 0, ta); TestUtils.assertRelativelyEquals(ta, oat.getEccentricAnomaly(), 1e-6); }
@Test public void calcEccentricAnomaly2() { Body b = new Body("A", 1); double ta = 3 * Math.PI / 2; OrbitAtTime oat = new OrbitAtTime(b, 1, 0, 0, 0, 0, ta); TestUtils.assertRelativelyEquals(ta, oat.getEccentricAnomaly(), 1e-6); }