siderust-cpp
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust.hpp File Reference

Umbrella header for the siderust C++ wrapper library. More...

#include "altitude.hpp"
#include "bodies.hpp"
#include "centers.hpp"
#include "coordinates.hpp"
#include "ephemeris.hpp"
#include "ffi_core.hpp"
#include "frames.hpp"
#include "observatories.hpp"
#include "time.hpp"
Include dependency graph for siderust.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Umbrella header for the siderust C++ wrapper library.

Include this single header to get the full siderust C++ API.

using namespace siderust;
using namespace siderust::frames;
// Typed coordinates with compile-time frame/center
spherical::direction::ICRS vega_icrs(279.23473, 38.78369); // Direction<ICRS>
auto jd = JulianDate::from_utc({2026, 7, 15, 22, 0, 0});
// Template-targeted transform — invalid pairs won't compile
auto ecl = vega_icrs.to_frame<EclipticMeanJ2000>(jd); // Direction<EclipticMeanJ2000>
auto hor = vega_icrs.to_horizontal(jd, ROQUE_DE_LOS_MUCHACHOS);
// Typed ephemeris — unit-safe AU/km positions
auto earth = ephemeris::earth_heliocentric(jd); // cartesian::Position<Heliocentric, EclipticMeanJ2000, AU>
auto dist = earth.comp_x.to<qtty::Kilometer>(); // unit conversion
Umbrella header for the siderust C++ wrapper library.
Mean ecliptic & equinox of J2000.0.
Definition frames.hpp:51
A direction on the celestial sphere, compile-time tagged by frame.
Definition spherical.hpp:36

Definition in file siderust.hpp.