![]() |
siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
|
Result of a body-centric coordinate transformation. More...
#include <siderust/coordinates/bodycentric_transforms.hpp>

Public Member Functions | |
| U | x () const |
| U | y () const |
| U | z () const |
| U | distance () const |
Distance from the body (norm of the embedded pos). | |
| U | distance_to (const BodycentricPos &other) const |
| Distance to another body-centric position. | |
| const BodycentricParams & | center_params () const |
| Access the embedded orbital parameters of the body. | |
| cartesian::Position< centers::Geocentric, F, U > | to_geocentric (const Time< TT, JD > &jd) const |
| Transform back to geocentric coordinates. | |
Public Attributes | |
| cartesian::Position< centers::Bodycentric, F, U > | pos |
| Raw Cartesian position tagged with the Bodycentric center. | |
| BodycentricParams | params |
| Orbital parameters of the body used as the coordinate origin. | |
Result of a body-centric coordinate transformation.
Carries the relative position (target – body) and the embedded BodycentricParams needed for the inverse transform (to_geocentric). Mirrors Rust's Position<Bodycentric, F, U> which stores BodycentricParams at runtime.
| F | Reference frame tag (e.g. frames::EclipticMeanJ2000). |
| U | Length unit (default: qtty::AstronomicalUnit). |
Definition at line 73 of file bodycentric_transforms.hpp.
|
inline |
Access the embedded orbital parameters of the body.
Definition at line 95 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::params.
|
inline |
Distance from the body (norm of the embedded pos).
Definition at line 89 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::pos.
|
inline |
Distance to another body-centric position.
Definition at line 92 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::pos.
|
inline |
Transform back to geocentric coordinates.
Mirrors Rust's FromBodycentricExt::to_geocentric(jd). Uses the same params and jd as the original to_bodycentric() call.
| jd | Julian Date (same as the forward transform). |
Definition at line 158 of file bodycentric_transforms.hpp.
References siderust::check_status(), and siderust::BodycentricParams::to_c().
|
inline |
Definition at line 84 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::pos.
|
inline |
Definition at line 85 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::pos.
|
inline |
Definition at line 86 of file bodycentric_transforms.hpp.
References siderust::BodycentricPos< F, U >::pos.
| BodycentricParams siderust::BodycentricPos< F, U >::params |
Orbital parameters of the body used as the coordinate origin.
Definition at line 80 of file bodycentric_transforms.hpp.
Referenced by siderust::BodycentricPos< F, U >::center_params().
| cartesian::Position<centers::Bodycentric, F, U> siderust::BodycentricPos< F, U >::pos |
Raw Cartesian position tagged with the Bodycentric center.
Definition at line 77 of file bodycentric_transforms.hpp.
Referenced by siderust::BodycentricPos< F, U >::distance(), siderust::BodycentricPos< F, U >::distance_to(), siderust::BodycentricPos< F, U >::x(), siderust::BodycentricPos< F, U >::y(), and siderust::BodycentricPos< F, U >::z().