Antkeeper  0.0.1
Functions
physics::orbit::frame::pqw Namespace Reference

Perifocal (PQW) frame. More...

Functions

template<class T >
math::vec3< T > spherical (const math::vec3< T > &v)
 Converts PQW coordinates from Cartesian to spherical. More...
 
template<class T >
math::vec3< T > spherical (T ec, T a, T ea, T b)
 Constructs spherical PQW coordinates from Keplerian orbital elements. More...
 
template<class T >
math::vec3< T > spherical (T ec, T a, T ea)
 Constructs spherical PQW coordinates from Keplerian orbital elements. More...
 
template<class T >
math::vec3< T > cartesian (const math::vec3< T > &v)
 Converts PQW coordinates from spherical to Cartesian. More...
 
template<class T >
math::vec3< T > cartesian (T ec, T a, T ea, T b)
 Constructs Cartesian PQW coordinates from Keplerian orbital elements. More...
 
template<class T >
math::vec3< T > cartesian (T ec, T a, T ea)
 Constructs Cartesian PQW coordinates from Keplerian orbital elements. More...
 
template<typename T >
math::se3< T > to_bci (T om, T in, T w)
 Constructs an SE(3) transformation from a PQW frame to a BCI frame. More...
 

Detailed Description

Perifocal (PQW) frame.

Function Documentation

◆ cartesian() [1/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::cartesian ( const math::vec3< T > &  v)

Converts PQW coordinates from spherical to Cartesian.

Parameters
PQWspherical coordinates, in the ISO order of radial distance, inclination (radians), and true anomaly (radians).
Returns
PQW Cartesian coordinates.

Definition at line 96 of file frame.hpp.

◆ cartesian() [2/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::cartesian ( ec,
a,
ea 
)

Constructs Cartesian PQW coordinates from Keplerian orbital elements.

Parameters
ecEccentricity (e).
aSemimajor axis (a).
eaEccentric anomaly (E), in radians.
Returns
PQW Cartesian coordinates.

Definition at line 132 of file frame.hpp.

◆ cartesian() [3/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::cartesian ( ec,
a,
ea,
b 
)

Constructs Cartesian PQW coordinates from Keplerian orbital elements.

Parameters
ecEccentricity (e).
aSemimajor axis (a).
eaEccentric anomaly (E), in radians.
bSemiminor axis (b).
Returns
PQW Cartesian coordinates.

Definition at line 118 of file frame.hpp.

◆ spherical() [1/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::spherical ( const math::vec3< T > &  v)

Converts PQW coordinates from Cartesian to spherical.

Parameters
vPQW Cartesian coordinates.
Returns
PQW spherical coordinates, in the ISO order of radial distance, inclination (radians), and true anomaly (radians).

Definition at line 42 of file frame.hpp.

◆ spherical() [2/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::spherical ( ec,
a,
ea 
)

Constructs spherical PQW coordinates from Keplerian orbital elements.

Parameters
ecEccentricity (e).
aSemimajor axis (a).
eaEccentric anomaly (E), in radians.
Returns
PQW spherical coordinates, in the ISO order of radial distance, inclination (radians), and true anomaly (radians).

Definition at line 83 of file frame.hpp.

◆ spherical() [3/3]

template<class T >
math::vec3<T> physics::orbit::frame::pqw::spherical ( ec,
a,
ea,
b 
)

Constructs spherical PQW coordinates from Keplerian orbital elements.

Parameters
ecEccentricity (e).
aSemimajor axis (a).
eaEccentric anomaly (E), in radians.
bSemiminor axis (b).
Returns
PQW spherical coordinates, in the ISO order of radial distance, inclination (radians), and true anomaly (radians).

Definition at line 64 of file frame.hpp.

◆ to_bci()

template<typename T >
math::se3<T> physics::orbit::frame::pqw::to_bci ( om,
in,
w 
)

Constructs an SE(3) transformation from a PQW frame to a BCI frame.

Parameters
omRight ascension of the ascending node (OMEGA), in radians.
inOrbital inclination (i), in radians.
wArgument of periapsis (omega), in radians.
Returns
PQW to BCI transformation.

Definition at line 146 of file frame.hpp.