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)  

line_dist.c File Reference
#include <grass/gis.h>
Include dependency graph for 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

void G_set_distance_to_line_tolerance (double t)
 
double G_distance2_point_to_line (double x, double y, double x1, double y1, double x2, double y2)
 

Variables

static double tolerance = 1.0e-10
 

Macro Definition Documentation

◆ TOLERANCE

#define TOLERANCE   1.0e-10

Definition at line 5 of file line_dist.c.

◆ ZERO

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

Definition at line 4 of file line_dist.c.

Function Documentation

◆ G_distance2_point_to_line()

double G_distance2_point_to_line ( double  x,
double  y,
double  x1,
double  y1,
double  x2,
double  y2 
)

Definition at line 15 of file line_dist.c.

References t, x, x1, x2, and ZERO.

◆ G_set_distance_to_line_tolerance()

void G_set_distance_to_line_tolerance ( double  t)

Definition at line 8 of file line_dist.c.

References t, TOLERANCE, and tolerance.

Variable Documentation

◆ tolerance

double tolerance = 1.0e-10
static