PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lw_dist2d_point_point ( LWPOINT point1,
LWPOINT point2,
DISTPTS dl 
)

point to point calculation

Definition at line 535 of file measures.c.

References getPoint2d_cp(), lw_dist2d_pt_pt(), rect_node::p1, rect_node::p2, and LWPOINT::point.

Referenced by lw_dist2d_distribute_bruteforce().

536 {
537  const POINT2D *p1, *p2;
538 
539  p1 = getPoint2d_cp(point1->point, 0);
540  p2 = getPoint2d_cp(point2->point, 0);
541 
542  return lw_dist2d_pt_pt(p1, p2, dl);
543 }
POINTARRAY * point
Definition: liblwgeom.h:367
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
Definition: lwgeom_api.c:458
int lw_dist2d_pt_pt(const POINT2D *thep1, const POINT2D *thep2, DISTPTS *dl)
Compares incomming points and stores the points closest to each other or most far away from each othe...
Definition: measures.c:2087

Here is the call graph for this function:

Here is the caller graph for this function: