GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
gammavol.c File Reference
#include <stdio.h>
#include <math.h>
Include dependency graph for gammavol.c:

Go to the source code of this file.

Macros

#define ABS(a)   ((a) > 0 ? (a) : -(a))
 
#define EP   .0000000001
 

Functions

double sphere_volume (double dimension)
 
int main ()
 

Macro Definition Documentation

◆ ABS

#define ABS (   a)    ((a) > 0 ? (a) : -(a))

Definition at line 22 of file gammavol.c.

Referenced by main().

◆ EP

#define EP   .0000000001

Definition at line 25 of file gammavol.c.

Referenced by main().

Function Documentation

◆ main()

int main ( void  )

Definition at line 36 of file gammavol.c.

References ABS, EP, and sphere_volume().

◆ sphere_volume()

double sphere_volume ( double  dimension)

Definition at line 27 of file gammavol.c.

References M_PI.

Referenced by main(), and RTreeRectVolume().