Class ClassicalOE

Inheritance Relationships

Base Type

Class Documentation

class ClassicalOE : public lupnt::State

Public Functions

inline ClassicalOE(const State &x)

Reinterpret a generic State as ClassicalOE (classical Keplerian orbital elements), checking its size and type tag. Used by KeplerianDynamics<ClassicalOE>::Propagate and the mean/osculating conversions (MeanToOsculating/OsculatingToMean) when operating on an orbit-element state.

Parameters:

x – 6-element state of type ClassicalOE::TYPE.

inline ClassicalOE(const Vec6 &x = Vec6::Zero(), const Frame frame = Frame::MOON_CI)

Construct a ClassicalOE from a stacked 6-element element vector.

Parameters:
  • x – [a, e, i, Omega, w, M] in [m, -, rad, rad, rad, rad].

  • frame – Reference frame the elements are defined in (default MOON_CI).

inline Real &a()

Mutable reference to the semi-major axis.

Returns:

Semi-major axis [m].

inline Real &e()

Mutable reference to the eccentricity.

Returns:

Eccentricity [-].

inline Real &i()

Mutable reference to the inclination.

Returns:

Inclination [rad].

inline Real &Omega()

Mutable reference to the RAAN.

Returns:

Right ascension of the ascending node [rad].

inline Real &w()

Mutable reference to the argument of periapsis.

Returns:

Argument of periapsis [rad].

inline Real &M()

Mutable reference to the mean anomaly.

Returns:

Mean anomaly [rad].

inline Real a() const

Semi-major axis.

Returns:

Semi-major axis [m].

inline Real e() const

Eccentricity.

Returns:

Eccentricity [-].

inline Real i() const

Inclination.

Returns:

Inclination [rad].

inline Real Omega() const

Right ascension of the ascending node.

Returns:

RAAN [rad].

inline Real w() const

Argument of periapsis.

Returns:

Argument of periapsis [rad].

inline Real M() const

Mean anomaly.

Returns:

Mean anomaly [rad].

Public Static Attributes

static StateType TYPE = "ClassicalOE"