GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
pi.h File Reference
#include <grass/gis.h>
Include dependency graph for pi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Radians(x)   ((x) * M_PI/180.0)
 
#define Degrees(x)   ((x) * 180.0/M_PI)
 

Macro Definition Documentation

◆ Degrees

#define Degrees (   x)    ((x) * 180.0/M_PI)

Definition at line 7 of file pi.h.

Referenced by G_rhumbline_lat_from_lon().

◆ Radians

#define Radians (   x)    ((x) * M_PI/180.0)