![]() |
siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
|
Runtime-loaded JPL DE4xx ephemeris. More...
#include <siderust/runtime_ephemeris.hpp>
Public Member Functions | |
| RuntimeEphemeris (const std::string &path) | |
| Load a runtime ephemeris from a BSP file on disk. | |
| RuntimeEphemeris (const uint8_t *data, size_t len) | |
| Load a runtime ephemeris from raw BSP bytes in memory. | |
| RuntimeEphemeris (RuntimeEphemeris &&other) noexcept | |
| RuntimeEphemeris & | operator= (RuntimeEphemeris &&other) noexcept |
| RuntimeEphemeris (const RuntimeEphemeris &)=delete | |
| RuntimeEphemeris & | operator= (const RuntimeEphemeris &)=delete |
| ~RuntimeEphemeris () | |
| cartesian::position::HelioBarycentric< qtty::AstronomicalUnit > | sun_barycentric (const Time< TT, JD > &jd) const |
| Sun's barycentric position (EclipticMeanJ2000, AU). | |
| cartesian::position::GeoBarycentric< qtty::AstronomicalUnit > | earth_barycentric (const Time< TT, JD > &jd) const |
| Earth's barycentric position (EclipticMeanJ2000, AU). | |
| cartesian::position::EclipticMeanJ2000< qtty::AstronomicalUnit > | earth_heliocentric (const Time< TT, JD > &jd) const |
| Earth's heliocentric position (EclipticMeanJ2000, AU). | |
| cartesian::position::MoonGeocentric< qtty::Kilometer > | moon_geocentric (const Time< TT, JD > &jd) const |
| Moon's geocentric position (EclipticMeanJ2000, km). | |
| CartesianVelocity | earth_barycentric_velocity (const Time< TT, JD > &jd) const |
| Earth's barycentric velocity (EclipticMeanJ2000, AU/day). | |
| operator bool () const noexcept | |
| Check whether this handle is valid (non-null). | |
Runtime-loaded JPL DE4xx ephemeris.
This class wraps an opaque Rust RuntimeEphemeris handle. It loads a BSP file once (from a file path or a memory buffer) and then provides the same five fundamental position/velocity queries as the compile-time ephemeris::* free functions.
The class is move-only — use std::move to transfer ownership.
Definition at line 56 of file runtime_ephemeris.hpp.
|
inlineexplicit |
Load a runtime ephemeris from a BSP file on disk.
| path | Filesystem path to a JPL DE4xx BSP file. |
| DataLoadError | if the file cannot be read or parsed. |
Definition at line 65 of file runtime_ephemeris.hpp.
References siderust::check_status().
|
inline |
Load a runtime ephemeris from raw BSP bytes in memory.
| data | Pointer to BSP data. |
| len | Length in bytes. |
| DataLoadError | if the data cannot be parsed. |
Definition at line 77 of file runtime_ephemeris.hpp.
References siderust::check_status().
|
inlinenoexcept |
Definition at line 85 of file runtime_ephemeris.hpp.
|
delete |
|
inline |
Definition at line 104 of file runtime_ephemeris.hpp.
|
inline |
Earth's barycentric position (EclipticMeanJ2000, AU).
Definition at line 123 of file runtime_ephemeris.hpp.
References siderust::check_status(), and siderust::cartesian::Position< C, F, U >::from_c().
|
inline |
Earth's barycentric velocity (EclipticMeanJ2000, AU/day).
Returns the first-order time derivative of the Earth's barycentric position as provided by the loaded JPL DE kernel.
Definition at line 158 of file runtime_ephemeris.hpp.
References siderust::check_status(), and siderust::CartesianVelocity::from_c().
|
inline |
Earth's heliocentric position (EclipticMeanJ2000, AU).
Definition at line 134 of file runtime_ephemeris.hpp.
References siderust::check_status(), and siderust::cartesian::Position< C, F, U >::from_c().
|
inline |
Moon's geocentric position (EclipticMeanJ2000, km).
Definition at line 145 of file runtime_ephemeris.hpp.
References siderust::check_status(), and siderust::cartesian::Position< C, F, U >::from_c().
|
inlineexplicitnoexcept |
Check whether this handle is valid (non-null).
Definition at line 170 of file runtime_ephemeris.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 89 of file runtime_ephemeris.hpp.
|
inline |
Sun's barycentric position (EclipticMeanJ2000, AU).
Definition at line 112 of file runtime_ephemeris.hpp.
References siderust::check_status(), and siderust::cartesian::Position< C, F, U >::from_c().