GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
short_way.c
Go to the documentation of this file.
1
17
#include <grass/gis.h>
18
19
33
int
G_shortest_way
(
double
*east1,
double
*east2)
34
{
35
if
(
G_projection
() == PROJECTION_LL) {
36
if
(*east1 > *east2)
37
while
((*east1 - *east2) > 180)
38
*east2 += 360;
39
else
if
(*east2 > *east1)
40
while
((*east2 - *east1) > 180)
41
*east1 += 360;
42
}
43
44
return
0;
45
}
lib
gis
short_way.c
Generated on Sat Oct 5 2013 12:11:10 for GRASS Programmer's Manual by
1.8.4