MobilityDB 1.1

◆ dist2d_pt_seg()

static double dist2d_pt_seg ( POINT2D p,
POINT2D A,
POINT2D B 
)
static

Return the 2D distance between the point the segment.

Parameters
[in]pPoint
[in]A,BPoints defining the segment
See also
http://geomalgorithms.com/a02-_lines.html
Note
Derived from the PostGIS function lw_dist2d_pt_seg in file measures.c