Tudat/Astrodynamics/BasicAstrodynamics/missionGeometry.cpp
//! Compute whether an orbit is retrograde based on inclination.
Compute whether an orbit is retrograde based on inclination.
Compute whether an orbit is retrograde based on inclination .
bool isOrbitRetrograde( const double inclination )
{
    bool isRetrograde = false;
    if ( inclination < 0.0 || inclination > mathematical_constants::PI )
    {
        throw std::runtime_error(
                    "The inclination is in the wrong range when determining retrogradeness" );
    }
    else if ( inclination <= mathematical_constants::PI / 2.0 )
    {
        isRetrograde = false;
    }
    else if ( inclination > mathematical_constants::PI / 2.0 )
    {
        isRetrograde = true;
    }
    return isRetrograde;
}
bool isOrbitRetrograde ( const double inclination ) { bool isRetrograde = false ; if ( inclination < 0.0 || inclination > mathematical_constants :: PI ) { throw std :: runtime_error ( " " ) ; } else if ( inclination <= mathematical_constants :: PI / 2.0 ) { isRetrograde = false ; } else if ( inclination > mathematical_constants :: PI / 2.0 ) { isRetrograde = true ; } return isRetrograde ; }
Compute whether an orbit is retrograde based on inclination.
Compute whether an orbit is retrograde based on inclination .
// Check which range inclination is in and return value accordingly.