PostGIS  2.4.9dev-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 575 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().

576 {
577  const POINT2D *p1, *p2;
578 
579  p1 = getPoint2d_cp(point1->point, 0);
580  p2 = getPoint2d_cp(point2->point, 0);
581 
582  return lw_dist2d_pt_pt(p1, p2, dl);
583 }
POINTARRAY * point
Definition: liblwgeom.h:411
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:373
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:2281
Here is the call graph for this function:
Here is the caller graph for this function: