MobilityDB  1.0

◆ dist3d_pt_seg()

double dist3d_pt_seg ( POINT3DZ *  p,
POINT3DZ *  A,
POINT3DZ *  B 
)

Returns the 3D distance between the point the segment.

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