GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
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.

Functions

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

Detailed Description

GIS Library - Shortest path functions.

SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Original author CERL

Definition in file short_way.c.

Function Documentation

◆ G_shortest_way()

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

Parameters
[in,out]east1east (x) coordinate of first point
[in,out]east2east (x) coordinate of second point

Definition at line 25 of file short_way.c.

References G_projection(), and PROJECTION_LL.