QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Macros | Functions
gmath.h File Reference
#include "info.h"
Include dependency graph for gmath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NMEA_DOP_FACTOR   (5)
 Factor for translating DOP to meters. More...
 
#define NMEA_EARTH_FLATTENING   (1 / 298.257223563)
 Earth's flattening according WGS 84. More...
 
#define NMEA_EARTH_SEMIMAJORAXIS_KM   (NMEA_EARTHMAJORAXIS_KM / 1000)
 Earth's semi-major axis in km according WGS 84. More...
 
#define NMEA_EARTH_SEMIMAJORAXIS_M   (6378137.0)
 Earth's semi-major axis in m according WGS84. More...
 
#define NMEA_EARTHRADIUS_KM   (6378)
 Earth's mean radius in km. More...
 
#define NMEA_EARTHRADIUS_M   (NMEA_EARTHRADIUS_KM * 1000)
 Earth's mean radius in m. More...
 
#define NMEA_PI   (3.141592653589793)
 PI value. More...
 
#define NMEA_PI180   (NMEA_PI / 180)
 PI division by 180. More...
 

Functions

double nmea_calc_pdop (double hdop, double vdop)
 
double nmea_degree2ndeg (double val)
 
double nmea_degree2radian (double val)
 
double nmea_distance (const nmeaPOS *from_pos, const nmeaPOS *to_pos)
 
double nmea_distance_ellipsoid (const nmeaPOS *from_pos, const nmeaPOS *to_pos, double *from_azimuth, double *to_azimuth)
 
double nmea_dop2meters (double dop)
 
void nmea_info2pos (const nmeaINFO *info, nmeaPOS *pos)
 
double nmea_meters2dop (double meters)
 
int nmea_move_horz (const nmeaPOS *start_pos, nmeaPOS *end_pos, double azimuth, double distance)
 
int nmea_move_horz_ellipsoid (const nmeaPOS *start_pos, nmeaPOS *end_pos, double azimuth, double distance, double *end_azimuth)
 
double nmea_ndeg2degree (double val)
 
double nmea_ndeg2radian (double val)
 
void nmea_pos2info (const nmeaPOS *pos, nmeaINFO *info)
 
double nmea_radian2degree (double val)
 
double nmea_radian2ndeg (double val)
 

Macro Definition Documentation

◆ NMEA_DOP_FACTOR

#define NMEA_DOP_FACTOR   (5)

Factor for translating DOP to meters.

Definition at line 39 of file gmath.h.

◆ NMEA_EARTH_FLATTENING

#define NMEA_EARTH_FLATTENING   (1 / 298.257223563)

Earth's flattening according WGS 84.

Definition at line 38 of file gmath.h.

◆ NMEA_EARTH_SEMIMAJORAXIS_KM

#define NMEA_EARTH_SEMIMAJORAXIS_KM   (NMEA_EARTHMAJORAXIS_KM / 1000)

Earth's semi-major axis in km according WGS 84.

Definition at line 37 of file gmath.h.

◆ NMEA_EARTH_SEMIMAJORAXIS_M

#define NMEA_EARTH_SEMIMAJORAXIS_M   (6378137.0)

Earth's semi-major axis in m according WGS84.

Definition at line 36 of file gmath.h.

◆ NMEA_EARTHRADIUS_KM

#define NMEA_EARTHRADIUS_KM   (6378)

Earth's mean radius in km.

Definition at line 34 of file gmath.h.

◆ NMEA_EARTHRADIUS_M

#define NMEA_EARTHRADIUS_M   (NMEA_EARTHRADIUS_KM * 1000)

Earth's mean radius in m.

Definition at line 35 of file gmath.h.

◆ NMEA_PI

#define NMEA_PI   (3.141592653589793)

PI value.

Definition at line 32 of file gmath.h.

◆ NMEA_PI180

#define NMEA_PI180   (NMEA_PI / 180)

PI division by 180.

Definition at line 33 of file gmath.h.

Function Documentation

◆ nmea_calc_pdop()

double nmea_calc_pdop ( double  hdop,
double  vdop 
)

◆ nmea_degree2ndeg()

double nmea_degree2ndeg ( double  val)

◆ nmea_degree2radian()

double nmea_degree2radian ( double  val)

◆ nmea_distance()

double nmea_distance ( const nmeaPOS from_pos,
const nmeaPOS to_pos 
)

◆ nmea_distance_ellipsoid()

double nmea_distance_ellipsoid ( const nmeaPOS from_pos,
const nmeaPOS to_pos,
double *  from_azimuth,
double *  to_azimuth 
)

◆ nmea_dop2meters()

double nmea_dop2meters ( double  dop)

◆ nmea_info2pos()

void nmea_info2pos ( const nmeaINFO info,
nmeaPOS pos 
)

◆ nmea_meters2dop()

double nmea_meters2dop ( double  meters)

◆ nmea_move_horz()

int nmea_move_horz ( const nmeaPOS start_pos,
nmeaPOS end_pos,
double  azimuth,
double  distance 
)

◆ nmea_move_horz_ellipsoid()

int nmea_move_horz_ellipsoid ( const nmeaPOS start_pos,
nmeaPOS end_pos,
double  azimuth,
double  distance,
double *  end_azimuth 
)

◆ nmea_ndeg2degree()

double nmea_ndeg2degree ( double  val)

◆ nmea_ndeg2radian()

double nmea_ndeg2radian ( double  val)

◆ nmea_pos2info()

void nmea_pos2info ( const nmeaPOS pos,
nmeaINFO info 
)

◆ nmea_radian2degree()

double nmea_radian2degree ( double  val)

◆ nmea_radian2ndeg()

double nmea_radian2ndeg ( double  val)