|
libcfe
0.12.1
some useful C-functions
|
#include "config.h"#include "geo_calculations.h"#include <features.h>#include <stdio.h>#include "gpstypes.h"#include <stdlib.h>#include <math.h>Go to the source code of this file.
Macros | |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | MAX_NUMBER_ITERATIONS (100) |
| #define | FORMULA_DOUBLE |
| #define | f ((long double)(1/(long double)298.257223563)) |
| #define | a ((long double)6378137.0) |
| #define | PI ((long double)(M_PI)) |
Functions | |
| long double | calculate_distance (lat_t lat1_deg, lng_t lng1_deg, alt_t ele1, lat_t lat2_deg, lng_t lng2_deg, alt_t ele2) |
| float | calculate_incline (long double dst, alt_t d_ele) |
| #define a ((long double)6378137.0) |
Definition at line 381 of file geo_calculations.c.
| #define f ((long double)(1/(long double)298.257223563)) |
Definition at line 380 of file geo_calculations.c.
| #define FORMULA_DOUBLE |
Definition at line 375 of file geo_calculations.c.
Definition at line 14 of file geo_calculations.c.
| #define MAX_NUMBER_ITERATIONS (100) |
Definition at line 17 of file geo_calculations.c.
Definition at line 10 of file geo_calculations.c.
| #define PI ((long double)(M_PI)) |
Definition at line 382 of file geo_calculations.c.
| long double calculate_distance | ( | lat_t | lat1_deg, |
| lng_t | lng1_deg, | ||
| alt_t | ele1, | ||
| lat_t | lat2_deg, | ||
| lng_t | lng2_deg, | ||
| alt_t | ele2 | ||
| ) |
Definition at line 384 of file geo_calculations.c.
| float calculate_incline | ( | long double | dst, |
| alt_t | d_ele | ||
| ) |
Definition at line 437 of file geo_calculations.c.