PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lw_dist2d_point_point()

int lw_dist2d_point_point ( LWPOINT point1,
LWPOINT point2,
DISTPTS dl 
)

point to point calculation

Definition at line 561 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().

562 {
563  const POINT2D *p1, *p2;
564 
565  p1 = getPoint2d_cp(point1->point, 0);
566  p2 = getPoint2d_cp(point2->point, 0);
567 
568  return lw_dist2d_pt_pt(p1, p2, dl);
569 }
POINTARRAY * point
Definition: liblwgeom.h:395
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:472
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:2265
Here is the call graph for this function:
Here is the caller graph for this function: