![]() |
siderust-cpp
Header-only C++ wrapper for siderust
|
Geodetic position (WGS84 ellipsoid). More...
#include <siderust/coordinates/geodetic.hpp>
Public Member Functions | |
| Geodetic () | |
| Geodetic (qtty::Degree lon_, qtty::Degree lat_, qtty::Meter h=qtty::Meter(0)) | |
| Geodetic (double lon_deg, double lat_deg, double height_m=0.0) | |
| Raw-double convenience constructor (degrees, metres). | |
| siderust_geodetic_t | to_c () const |
| Convert to C FFI struct. | |
| template<typename U = qtty::Meter> | |
| cartesian::Position< centers::Geocentric, frames::ECEF, U > | to_cartesian () const |
| Convert geodetic (WGS84/ECEF) to cartesian position. | |
Static Public Member Functions | |
| static Geodetic | from_c (const siderust_geodetic_t &c) |
| Create from C FFI struct. | |
Public Attributes | |
| qtty::Degree | lon |
| Longitude (east positive). | |
| qtty::Degree | lat |
| Latitude (north positive). | |
| qtty::Meter | height |
| Height above ellipsoid. | |
Geodetic position (WGS84 ellipsoid).
Fixed to frame=ECEF, center=Geocentric. Uses qtty quantities.
Definition at line 28 of file geodetic.hpp.
|
inline |
Definition at line 33 of file geodetic.hpp.
Referenced by from_c().
|
inline |
Definition at line 36 of file geodetic.hpp.
|
inline |
Raw-double convenience constructor (degrees, metres).
Definition at line 40 of file geodetic.hpp.
|
inlinestatic |
Create from C FFI struct.
Definition at line 50 of file geodetic.hpp.
References Geodetic().
Referenced by siderust::geodetic(), siderust::detail::make_el_paranal(), siderust::detail::make_la_silla(), siderust::detail::make_mauna_kea(), and siderust::detail::make_roque_de_los_muchachos().
|
inline |
Convert to C FFI struct.
Definition at line 45 of file geodetic.hpp.
References height, lat, and lon.
Referenced by siderust::sun::altitude_at(), siderust::moon::altitude_at(), siderust::icrs_altitude::altitude_at(), siderust::star_altitude::altitude_at(), siderust::sun::altitude_periods(), siderust::moon::altitude_periods(), siderust::sun::altitude_periods(), siderust::moon::altitude_periods(), to_cartesian(), and siderust::spherical::Direction< F >::to_horizontal().
|
inline |
Convert geodetic (WGS84/ECEF) to cartesian position.
| U | Output length unit (default: meter). |
Definition at line 15 of file conversions.hpp.
References siderust::check_status(), siderust::cartesian::Position< C, F, U >::from_c(), and to_c().
Referenced by geodetic_and_ecef_example(), and siderust::geodetic_to_cartesian_ecef().
| qtty::Meter siderust::Geodetic::height |
Height above ellipsoid.
Definition at line 31 of file geodetic.hpp.
Referenced by geodetic_and_ecef_example(), and to_c().
| qtty::Degree siderust::Geodetic::lat |
Latitude (north positive).
Definition at line 30 of file geodetic.hpp.
Referenced by geodetic_and_ecef_example(), and to_c().
| qtty::Degree siderust::Geodetic::lon |
Longitude (east positive).
Definition at line 29 of file geodetic.hpp.
Referenced by geodetic_and_ecef_example(), and to_c().