Antkeeper  0.0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
physics::orbit::frame::bci Namespace Reference

Body-centered inertial (BCI) frame. More...

Functions

template<class T >
math::vec3< T > cartesian (const math::vec3< T > &v)
 Converts BCI coordinates from spherical to Cartesian. More...
 
template<class T >
math::vec3< T > spherical (const math::vec3< T > &v)
 Converts BCI coordinates from Cartesian to spherical. More...
 
template<typename T >
math::se3< T > to_bcbf (T ra, T dec, T w)
 Constructs an SE(3) transformation from a BCI frame to a BCBF frame. More...
 
template<typename T >
math::se3< T > to_pqw (T om, T in, T w)
 Constructs an SE(3) transformation from a BCI frame to a PQW frame. More...
 

Detailed Description

Body-centered inertial (BCI) frame.

Function Documentation

◆ cartesian()

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

Converts BCI coordinates from spherical to Cartesian.

Parameters
vBCI spherical coordinates, in the ISO order of radial distance, declination (radians), and right ascension (radians).
Returns
BCI Cartesian coordinates.

Definition at line 170 of file frame.hpp.

◆ spherical()

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

Converts BCI coordinates from Cartesian to spherical.

Parameters
vBCI Cartesian coordinates.
Returns
BCI spherical coordinates, in the ISO order of radial distance, declination (radians), and right ascension (radians).

Definition at line 189 of file frame.hpp.

◆ to_bcbf()

template<typename T >
math::se3<T> physics::orbit::frame::bci::to_bcbf ( ra,
dec,
w 
)

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

Parameters
raRight ascension of the north pole, in radians.
decDeclination of the north pole, in radians.
wLocation of the prime meridian, as a rotation about the north pole, in radians.
Returns
BCI to BCBF transformation.
See also
Archinal, B.A., A’Hearn, M.F., Bowell, E. et al. Report of the IAU Working Group on Cartographic Coordinates and Rotational Elements: 2009. Celest Mech Dyn Astr 109, 101–135 (2011). https://doi.org/10.1007/s10569-010-9320-4

Definition at line 213 of file frame.hpp.

◆ to_pqw()

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

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

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

Definition at line 234 of file frame.hpp.