![]() |
siderust-cpp
Header-only C++ wrapper for siderust
|
This page is a quick reference to the coordinate types exposed by siderust-cpp, and the main methods you can expect each type to provide.
#include <siderust/coordinates.hpp> (or #include <siderust/siderust.hpp>).#include <siderust/coordinates/types.hpp>.siderust::GeodeticWGS84 geodetic position (fixed to center = centers::Geocentric, frame = frames::ECEF).
lon, lat, heightto_c(), from_c(...), to_cartesian<U>()siderust::spherical::Direction<F>Spherical direction tagged by reference frame F.
to_c(), from_c(...)frames::has_ra_dec_v<F>): ra(), dec()frames::has_az_alt_v<F>): az(), al() / alt()frames::has_lon_lat_v<F>): lon(), lat()to_frame<Target>(jd) / to<Target>(jd) (only when frames::has_frame_transform_v<F, Target>)to_horizontal(jd, observer) (only when frames::has_horizontal_transform_v<F>)siderust::spherical::Position<C, F, U>Spherical position (direction + distance) tagged by center C, frame F, and unit U.
direction(), distance()frames::has_ra_dec_v<F>): ra(), dec()frames::has_az_alt_v<F>): az(), al() / alt()frames::has_lon_lat_v<F>): lon(), lat()siderust::cartesian::Direction<F>Cartesian direction vector tagged by reference frame F.
x, y, zframe_id()siderust::cartesian::Position<C, F, U>Cartesian position tagged by center C, frame F, and unit U.
comp_x, comp_y, comp_zx(), y(), z(), to_c(), from_c(...), frame_id(), center_id()Aliases are grouped by coordinate kind and meaning is encoded in namespace rather than suffixes. Examples:
spherical::direction::ICRS = spherical::Direction<frames::ICRS>spherical::position::ICRS<qtty::Meter> = spherical::Position<centers::Barycentric, frames::ICRS, qtty::Meter>cartesian::position::ECEF<qtty::Meter> = cartesian::Position<centers::Geocentric, frames::ECEF, qtty::Meter>cartesian::position::EclipticMeanJ2000<qtty::AstronomicalUnit> = cartesian::Position<centers::Heliocentric, frames::EclipticMeanJ2000, qtty::AstronomicalUnit>Browse the full list in the coordinates/types/ headers.