Tudat/Astrodynamics/BasicAstrodynamics/astrodynamicsFunctions.cpp
//! Compute periapsis altitude from Keplerian state for spherical central body.
Compute periapsis altitude from Keplerian state for spherical central body.
Compute periapsis altitude from Keplerian state for spherical central body .
double computePeriapsisAltitudeFromKeplerianState( const Eigen::Vector6d& state,
                                                   const double centralBodyRadius )
{
    return state( orbital_element_conversions::semiMajorAxisIndex ) *
            ( 1.0 - state( orbital_element_conversions::eccentricityIndex ) ) - centralBodyRadius;
}
double computePeriapsisAltitudeFromKeplerianState ( const Eigen :: Vector6d & state , const double centralBodyRadius ) { return state ( orbital_element_conversions :: semiMajorAxisIndex ) * ( 1.0 - state ( orbital_element_conversions :: eccentricityIndex ) ) - centralBodyRadius ; }
Compute periapsis altitude from Keplerian state for spherical central body.
Compute periapsis altitude from Keplerian state for spherical central body .