GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
short_way.c File Reference

GIS Library - Shortest path functions. More...

#include <grass/gis.h>
Include dependency graph for short_way.c:

Go to the source code of this file.


int G_shortest_way (double *east1, double *east2)
 Shortest way between two eastings. More...

Detailed Description

GIS Library - Shortest path functions.

(C) 2001-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

GRASS GIS Development Team

Definition in file short_way.c.

Function Documentation

int G_shortest_way ( double *  east1,
double *  east2 

Shortest way between two eastings.

For lat-lon projection (PROJECTION_LL), east1, east2 are changed so that they are no more than 180 degrees apart. Their true locations are not changed. For all other projections, this function does nothing.

[in]east1east (x) coordinate of first point
[in]east2east (x) coordinate of second point
always returns 0

Definition at line 33 of file short_way.c.

References G_projection().