siderust-cpp
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::Geodetic Struct Reference

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.
 

Detailed Description

Geodetic position (WGS84 ellipsoid).

Fixed to frame=ECEF, center=Geocentric. Uses qtty quantities.

Examples
coordinates_examples.cpp.

Definition at line 28 of file geodetic.hpp.

Constructor & Destructor Documentation

◆ Geodetic() [1/3]

siderust::Geodetic::Geodetic ( )
inline

Definition at line 33 of file geodetic.hpp.

Referenced by from_c().

◆ Geodetic() [2/3]

siderust::Geodetic::Geodetic ( qtty::Degree  lon_,
qtty::Degree  lat_,
qtty::Meter  h = qtty::Meter(0) 
)
inline

Definition at line 36 of file geodetic.hpp.

◆ Geodetic() [3/3]

siderust::Geodetic::Geodetic ( double  lon_deg,
double  lat_deg,
double  height_m = 0.0 
)
inline

Raw-double convenience constructor (degrees, metres).

Definition at line 40 of file geodetic.hpp.

Member Function Documentation

◆ from_c()

static Geodetic siderust::Geodetic::from_c ( const siderust_geodetic_t &  c)
inlinestatic

◆ to_c()

◆ to_cartesian()

template<typename U >
cartesian::Position< centers::Geocentric, frames::ECEF, U > siderust::Geodetic::to_cartesian ( ) const
inline

Convert geodetic (WGS84/ECEF) to cartesian position.

Template Parameters
UOutput length unit (default: meter).
Examples
coordinates_examples.cpp.

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().

Member Data Documentation

◆ height

qtty::Meter siderust::Geodetic::height

Height above ellipsoid.

Examples
coordinates_examples.cpp.

Definition at line 31 of file geodetic.hpp.

Referenced by geodetic_and_ecef_example(), and to_c().

◆ lat

qtty::Degree siderust::Geodetic::lat

Latitude (north positive).

Examples
coordinates_examples.cpp.

Definition at line 30 of file geodetic.hpp.

Referenced by geodetic_and_ecef_example(), and to_c().

◆ lon

qtty::Degree siderust::Geodetic::lon

Longitude (east positive).

Examples
coordinates_examples.cpp.

Definition at line 29 of file geodetic.hpp.

Referenced by geodetic_and_ecef_example(), and to_c().


The documentation for this struct was generated from the following files: