18
18
#include " mathematica/mathematica.hpp"
19
19
#include " physics/apsides.hpp"
20
20
#include " physics/body_surface_dynamic_frame.hpp"
21
- #include " physics/discrete_trajectory .hpp"
21
+ #include " physics/discrete_traject0ry .hpp"
22
22
#include " physics/kepler_orbit.hpp"
23
23
#include " physics/massless_body.hpp"
24
24
#include " physics/oblate_body.hpp"
@@ -57,7 +57,7 @@ using physics::BodySurfaceDynamicFrame;
57
57
using physics::ComputeApsides;
58
58
using physics::ComputeNodes;
59
59
using physics::DegreesOfFreedom;
60
- using physics::DiscreteTrajectory ;
60
+ using physics::DiscreteTraject0ry ;
61
61
using physics::Ephemeris;
62
62
using physics::KeplerianElements;
63
63
using physics::KeplerOrbit;
@@ -363,7 +363,7 @@ TEST_P(LunarOrbitTest, NearCircularRepeatGroundTrackOrbit) {
363
363
IsNear (4 .7e-13_⑴));
364
364
}
365
365
366
- DiscreteTrajectory <ICRS> trajectory;
366
+ DiscreteTraject0ry <ICRS> trajectory;
367
367
trajectory.Append (J2000, initial_state);
368
368
auto const instance = ephemeris_->NewInstance (
369
369
{&trajectory},
@@ -377,7 +377,7 @@ TEST_P(LunarOrbitTest, NearCircularRepeatGroundTrackOrbit) {
377
377
378
378
// To find the nodes, we need to convert the trajectory to a reference frame
379
379
// whose xy plane is the Moon's equator.
380
- DiscreteTrajectory <LunarSurface> surface_trajectory;
380
+ DiscreteTraject0ry <LunarSurface> surface_trajectory;
381
381
for (auto const & [time , degrees_of_freedom] : trajectory) {
382
382
surface_trajectory.Append (
383
383
time , lunar_frame_.ToThisFrameAtTime (time )(degrees_of_freedom));
@@ -413,18 +413,20 @@ TEST_P(LunarOrbitTest, NearCircularRepeatGroundTrackOrbit) {
413
413
mathematica::ExpressIn (Metre));
414
414
}
415
415
416
- DiscreteTrajectory<LunarSurface> ascending_nodes;
417
- DiscreteTrajectory<LunarSurface> descending_nodes;
418
- ComputeNodes (surface_trajectory.begin (),
416
+ DiscreteTraject0ry<LunarSurface> ascending_nodes;
417
+ DiscreteTraject0ry<LunarSurface> descending_nodes;
418
+ ComputeNodes (surface_trajectory,
419
+ surface_trajectory.begin (),
419
420
surface_trajectory.end (),
420
421
/* north=*/ Vector<double , LunarSurface>({0 , 0 , 1 }),
421
422
/* max_points=*/ std::numeric_limits<int >::max (),
422
423
ascending_nodes,
423
424
descending_nodes);
424
425
425
- DiscreteTrajectory <ICRS> apoapsides;
426
- DiscreteTrajectory <ICRS> periapsides;
426
+ DiscreteTraject0ry <ICRS> apoapsides;
427
+ DiscreteTraject0ry <ICRS> periapsides;
427
428
ComputeApsides (*ephemeris_->trajectory (moon_),
429
+ trajectory,
428
430
trajectory.begin (),
429
431
trajectory.end (),
430
432
/* max_points=*/ std::numeric_limits<int >::max (),
@@ -433,12 +435,12 @@ TEST_P(LunarOrbitTest, NearCircularRepeatGroundTrackOrbit) {
433
435
434
436
struct Nodes {
435
437
std::string_view const name;
436
- DiscreteTrajectory <LunarSurface> const & trajectory;
438
+ DiscreteTraject0ry <LunarSurface> const & trajectory;
437
439
};
438
440
439
441
struct Apsides {
440
442
std::string_view const name;
441
- DiscreteTrajectory <ICRS> const & trajectory;
443
+ DiscreteTraject0ry <ICRS> const & trajectory;
442
444
};
443
445
444
446
std::vector<double > descending_node_eccentricities;
@@ -530,7 +532,7 @@ TEST_P(LunarOrbitTest, NearCircularRepeatGroundTrackOrbit) {
530
532
{
531
533
EccentricityVectorRange actual_period_ends;
532
534
for (int orbit = 0 ;
533
- orbit < descending_nodes.Size ();
535
+ orbit < descending_nodes.size ();
534
536
orbit += orbits_per_period) {
535
537
auto & actual = actual_period_ends;
536
538
auto const e = descending_node_eccentricities[orbit];
0 commit comments