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

Body-centered, body-fixed (BCBF) frame. More...

Functions

template<class T >
math::vec3< T > cartesian (const math::vec3< T > &v)
 Converts BCBF coordinates from spherical to Cartesian. More...
 
template<class T >
math::vec3< T > spherical (const math::vec3< T > &v)
 Converts BCBF coordinates from Cartesian to spherical. More...
 
template<typename T >
math::se3< T > to_bci (T ra, T dec, T w)
 Constructs an SE(3) transformation from a BCBF frame to a BCI frame. More...
 
template<typename T >
math::se3< T > to_enu (T distance, T latitude, T longitude)
 Constructs an SE(3) transformation from a BCBF frame to an ENU frame. More...
 

Detailed Description

Body-centered, body-fixed (BCBF) frame.

Function Documentation

◆ cartesian()

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

Converts BCBF coordinates from spherical to Cartesian.

Parameters
vBCBF spherical coordinates, in the ISO order of radial distance, latitude (radians), and longitude (radians).
Returns
BCBF Cartesian coordinates.

Definition at line 258 of file frame.hpp.

◆ spherical()

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

Converts BCBF coordinates from Cartesian to spherical.

Parameters
vBCBF Cartesian coordinates.
Returns
BCBF spherical coordinates, in the ISO order of radial distance, latitude (radians), and longitude (radians).

Definition at line 277 of file frame.hpp.

◆ to_bci()

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

Constructs an SE(3) transformation from a BCBF frame to a BCI 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
BCBF to BCI 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 301 of file frame.hpp.

◆ to_enu()

template<typename T >
math::se3<T> physics::orbit::frame::bcbf::to_enu ( distance,
latitude,
longitude 
)

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

Parameters
distanceRadial distance of the observer from the center of the body.
latitudeLatitude of the observer, in radians.
longitudeLongitude of the observer, in radians.
Returns
BCBF to ENU transformation.

Definition at line 323 of file frame.hpp.