MobilityDB  1.0

◆ dist2d_pt_seg()

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

Returns 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