GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gis/line_dist.c File Reference
#include <grass/gis.h>
Include dependency graph for gis/line_dist.c:

Go to the source code of this file.


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


int 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)

Macro Definition Documentation

#define TOLERANCE   1.0e-10

Definition at line 5 of file gis/line_dist.c.

Referenced by G_set_distance_to_line_tolerance().

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

Definition at line 4 of file gis/line_dist.c.

Referenced by G_distance2_point_to_line().

Function Documentation

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

Definition at line 17 of file gis/line_dist.c.

References y, and ZERO.

int G_set_distance_to_line_tolerance ( double  t)

Definition at line 8 of file gis/line_dist.c.

References TOLERANCE.