3#include "../navtypes.h"
74 double metersPerDegLat;
75 double metersPerDegLon;
A GPS datum that specifies the reference ellipsoid for use in GPS calculations.
Definition gps_util.h:9
double getFlattening() const
Get the flattening parameter of the reference ellipsoid.
Definition gps_util.cpp:32
double getSquareEccentricity() const
Get the square of the (first) eccentricity of the ellipsoid.
Definition gps_util.cpp:36
static const GPSDatum WGS84
Reference links: https://en.wikipedia.org/wiki/Geodetic_datum#Earth_reference_ellipsoid https://en....
Definition gps_util.h:11
double getA() const
Get the semi-major axis of the reference ellipsoid.
Definition gps_util.cpp:24
GPSDatum(double a, double b)
Construct a new GPSDatum object, with the specified parameters for the ellipsoid.
Definition gps_util.cpp:22
double getB() const
Get the semi-minor axis of the reference ellipsoid.
Definition gps_util.cpp:28
double getMetersPerDegLon() const
Get the number of meters per degree of longitude.
Definition gps_util.cpp:69
navtypes::gpscoords_t metersToGPS(const navtypes::point_t &pos) const
convert a coordinate on the xy-plane to a gps coordinate
Definition gps_util.cpp:62
navtypes::point_t gpsToMeters(const navtypes::gpscoords_t &coords) const
convert the given gps coordinates to a coordinate on the xy plane, in meters
Definition gps_util.cpp:55
double getMetersPerDegLat() const
Get the number of meters per degree of latitude.
Definition gps_util.cpp:73
GPSToMetersConverter(const GPSDatum &datum, const navtypes::gpscoords_t &origin)
Construct a new GPSToMetersConverter object.
Definition gps_util.cpp:40
Represents a GPS coordinate in degrees.
Definition navtypes.h:10