grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

xgraph.c File Reference
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Include dependency graph for xgraph.c:

Go to the source code of this file.

Macros

#define X(j)   (argz[2 + 2 * (j) + 0][i])
 
#define Y(j)   (argz[2 + 2 * (j) + 1][i])
 
#define x   (argz[1][i])
 
#define X(j)   (argz[2 + (j) + 0][i])
 
#define Y(j)   (argz[2 + (j) + n][i])
 
#define x   (argz[1][i])
 

Functions

int c_graph (int argc, int *argt)
 
int f_graph (int argc, const int *argt, void **args)
 
int f_graph2 (int argc, const int *argt, void **args)
 

Macro Definition Documentation

◆ X [1/2]

#define X (   j)    (argz[2 + 2 * (j) + 0][i])

◆ x [1/2]

#define x   (argz[1][i])

◆ X [2/2]

#define X (   j)    (argz[2 + (j) + 0][i])

◆ x [2/2]

#define x   (argz[1][i])

◆ Y [1/2]

#define Y (   j)    (argz[2 + 2 * (j) + 1][i])

◆ Y [2/2]

#define Y (   j)    (argz[2 + (j) + n][i])

Function Documentation

◆ c_graph()

int c_graph ( int  argc,
int *  argt 
)

graph(x, x1,y1, x2,y2, ... xn,yn) returns y value based on graph described by the x,y pairs.

Definition at line 13 of file xgraph.c.

References DCELL_TYPE, E_ARG_LO, and E_ARG_NUM.

◆ f_graph()

int f_graph ( int  argc,
const int *  argt,
void **  args 
)

Definition at line 29 of file xgraph.c.

References columns, DCELL_TYPE, E_ARG_LO, E_ARG_NUM, E_ARG_TYPE, E_RES_TYPE, IS_NULL_D, SET_NULL_D, X, x, and Y.

◆ f_graph2()

int f_graph2 ( int  argc,
const int *  argt,
void **  args 
)

Definition at line 104 of file xgraph.c.

References columns, DCELL_TYPE, E_ARG_LO, E_ARG_NUM, E_ARG_TYPE, E_RES_TYPE, IS_NULL_D, SET_NULL_D, X, x, and Y.