QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.
#define NMEA_EARTH_FLATTENING   (1 / 298.257223563)
 Earth's flattening according WGS 84.
#define NMEA_EARTH_SEMIMAJORAXIS_KM   (NMEA_EARTHMAJORAXIS_KM / 1000)
 Earth's semi-major axis in km according WGS 84.
#define NMEA_EARTH_SEMIMAJORAXIS_M   (6378137.0)
 Earth's semi-major axis in m according WGS84.
#define NMEA_EARTHRADIUS_KM   (6378)
 Earth's mean radius in km.
#define NMEA_EARTHRADIUS_M   (NMEA_EARTHRADIUS_KM * 1000)
 Earth's mean radius in m.
#define NMEA_PI   (3.141592653589793)
 PI value.
#define NMEA_PI180   (NMEA_PI / 180)
 PI division by 180.

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

#define NMEA_DOP_FACTOR   (5)

Factor for translating DOP to meters.

Definition at line 39 of file gmath.h.

#define NMEA_EARTH_FLATTENING   (1 / 298.257223563)

Earth's flattening according WGS 84.

Definition at line 38 of file gmath.h.

#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.

#define NMEA_EARTH_SEMIMAJORAXIS_M   (6378137.0)

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

Definition at line 36 of file gmath.h.

#define NMEA_EARTHRADIUS_KM   (6378)

Earth's mean radius in km.

Definition at line 34 of file gmath.h.

#define NMEA_EARTHRADIUS_M   (NMEA_EARTHRADIUS_KM * 1000)

Earth's mean radius in m.

Definition at line 35 of file gmath.h.

#define NMEA_PI   (3.141592653589793)

PI value.

Definition at line 32 of file gmath.h.

#define NMEA_PI180   (NMEA_PI / 180)

PI division by 180.

Definition at line 33 of file gmath.h.

Function Documentation

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)