PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lw_dist3d_point_point ( LWPOINT point1,
LWPOINT point2,
DISTPTS3D dl 
)

point to point calculation

Definition at line 379 of file measures3d.c.

References getPoint3dz_p(), lw_dist3d_pt_pt(), LWDEBUG, rect_node::p1, rect_node::p2, and LWPOINT::point.

Referenced by lw_dist3d_distribute_bruteforce().

380 {
381  POINT3DZ p1;
382  POINT3DZ p2;
383  LWDEBUG(2, "lw_dist3d_point_point is called");
384 
385  getPoint3dz_p(point1->point, 0, &p1);
386  getPoint3dz_p(point2->point, 0, &p2);
387 
388  return lw_dist3d_pt_pt(&p1, &p2,dl);
389 }
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
POINTARRAY * point
Definition: liblwgeom.h:367
int getPoint3dz_p(const POINTARRAY *pa, int n, POINT3DZ *point)
Definition: lwgeom_api.c:305
int lw_dist3d_pt_pt(POINT3DZ *thep1, POINT3DZ *thep2, DISTPTS3D *dl)
Compares incomming points and stores the points closest to each other or most far away from each othe...
Definition: measures3d.c:598

Here is the call graph for this function:

Here is the caller graph for this function: