PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lw_dist3d_point_line()

int lw_dist3d_point_line ( const LWPOINT point,
const LWLINE line,
DISTPTS3D dl 
)

point to line calculation

Definition at line 755 of file measures3d.c.

756 {
757  POINT3DZ p;
758  POINTARRAY *pa = line->points;
759  LWDEBUG(2, "lw_dist3d_point_line is called");
760 
761  getPoint3dz_p(point->point, 0, &p);
762  return lw_dist3d_pt_ptarray(&p, pa, dl);
763 }
int getPoint3dz_p(const POINTARRAY *pa, uint32_t n, POINT3DZ *point)
Definition: lwgeom_api.c:215
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:101
int lw_dist3d_pt_ptarray(const POINT3DZ *p, const POINTARRAY *pa, DISTPTS3D *dl)
search all the segments of pointarray to see which one is closest to p Returns distance between point...
Definition: measures3d.c:996
POINTARRAY * points
Definition: liblwgeom.h:483
POINTARRAY * point
Definition: liblwgeom.h:471

References getPoint3dz_p(), lw_dist3d_pt_ptarray(), LWDEBUG, LWPOINT::point, and LWLINE::points.

Referenced by lw_dist3d_distribute_bruteforce().

Here is the call graph for this function:
Here is the caller graph for this function: