GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72505
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vector/vedit/distance.c File Reference

Vedit library - distance calculation. More...

#include <grass/vedit.h>
Include dependency graph for vector/vedit/distance.c:

Go to the source code of this file.


double Vedit_get_min_distance (struct line_pnts *Points1, struct line_pnts *Points2, int with_z, int *mindistidx)
 Calculate distances between two lines. More...

Detailed Description

Vedit library - distance calculation.

(C) 2007-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Martin Landa <landa.martin>

Definition in file vector/vedit/distance.c.

Function Documentation

double Vedit_get_min_distance ( struct line_pnts Points1,
struct line_pnts Points2,
int  with_z,
int mindistidx 

Calculate distances between two lines.

LL projection
Points1first line geometry
Points2second line geometry
with_zWITH_Z for 3D data
[out]mindistidxindex of minimal distance
minimal distance between two lines (their nodes)

Definition at line 28 of file vector/vedit/distance.c.

References G_debug(), line_pnts::n_points, Vect_points_distance(), line_pnts::x, line_pnts::y, and line_pnts::z.