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

Go to the source code of this file.

Macros

#define ZERO(x)   ((x) < tolerance && (x) > -tolerance)
 
#define TOLERANCE   1.0e-10
 

Functions

int dig_set_distance_to_line_tolerance (double t)
 
double dig_distance2_point_to_line (double x, double y, double z, double x1, double y1, double z1, double x2, double y2, double z2, int with_z, double *px, double *py, double *pz, double *pdist, int *status)
 

Macro Definition Documentation

◆ TOLERANCE

#define TOLERANCE   1.0e-10

Definition at line 21 of file vector/diglib/line_dist.c.

Referenced by dig_set_distance_to_line_tolerance().

◆ ZERO

#define ZERO (   x)    ((x) < tolerance && (x) > -tolerance)

Definition at line 20 of file vector/diglib/line_dist.c.

Function Documentation

◆ dig_distance2_point_to_line()

double dig_distance2_point_to_line ( double  x,
double  y,
double  z,
double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
int  with_z,
double *  px,
double *  py,
double *  pz,
double *  pdist,
int *  status 
)

Definition at line 45 of file vector/diglib/line_dist.c.

Referenced by Vect_line_distance(), and Vect_line_geodesic_distance().

◆ dig_set_distance_to_line_tolerance()

int dig_set_distance_to_line_tolerance ( double  t)

Definition at line 24 of file vector/diglib/line_dist.c.

References TOLERANCE.