![]() |
siderust-cpp
Header-only C++ wrapper for siderust
|
A spherical position (direction + distance), compile-time tagged. More...
#include <siderust/coordinates/spherical.hpp>
Public Member Functions | |
| Position () | |
| Position (qtty::Degree azimuth, qtty::Degree polar, U dist) | |
| Position (double azimuth_deg, double polar_deg, double dist_val) | |
| Direction< F > | direction () const |
| Extract the direction component. | |
| U | distance () const |
Component accessors by frame convention | |
| template<typename F_ = F, std::enable_if_t< frames::has_ra_dec_v< F_ >, int > = 0> | |
| qtty::Degree | ra () const |
| template<typename F_ = F, std::enable_if_t< frames::has_ra_dec_v< F_ >, int > = 0> | |
| qtty::Degree | dec () const |
| template<typename F_ = F, std::enable_if_t< frames::has_az_alt_v< F_ >, int > = 0> | |
| qtty::Degree | az () const |
| template<typename F_ = F, std::enable_if_t< frames::has_az_alt_v< F_ >, int > = 0> | |
| qtty::Degree | al () const |
| template<typename F_ = F, std::enable_if_t< frames::has_az_alt_v< F_ >, int > = 0> | |
| qtty::Degree | alt () const |
| template<typename F_ = F, std::enable_if_t< frames::has_lon_lat_v< F_ >, int > = 0> | |
| qtty::Degree | lon () const |
| template<typename F_ = F, std::enable_if_t< frames::has_lon_lat_v< F_ >, int > = 0> | |
| qtty::Degree | lat () const |
Static Public Member Functions | |
| static constexpr siderust_frame_t | frame_id () |
| static constexpr siderust_center_t | center_id () |
A spherical position (direction + distance), compile-time tagged.
Mirrors Rust's affn::spherical::Position<C, F, U>.
| C | Reference center tag (e.g. centers::Barycentric). |
| F | Reference frame tag (e.g. frames::ICRS). |
| U | Distance unit (default: qtty::Meter). |
Definition at line 180 of file spherical.hpp.
|
inline |
Definition at line 190 of file spherical.hpp.
|
inline |
Definition at line 193 of file spherical.hpp.
|
inline |
Definition at line 196 of file spherical.hpp.
|
inline |
Definition at line 218 of file spherical.hpp.
|
inline |
Definition at line 221 of file spherical.hpp.
|
inline |
Definition at line 215 of file spherical.hpp.
|
inlinestaticconstexpr |
Definition at line 231 of file spherical.hpp.
|
inline |
Definition at line 212 of file spherical.hpp.
Referenced by main(), and spherical_position_example().
|
inline |
Extract the direction component.
Definition at line 202 of file spherical.hpp.
Referenced by main(), and spherical_position_example().
|
inline |
Definition at line 233 of file spherical.hpp.
Referenced by main(), and spherical_position_example().
|
inlinestaticconstexpr |
Definition at line 230 of file spherical.hpp.
|
inline |
Definition at line 227 of file spherical.hpp.
|
inline |
Definition at line 224 of file spherical.hpp.
|
inline |
Definition at line 209 of file spherical.hpp.
Referenced by main(), and spherical_position_example().