PostGIS  2.5.7dev-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 579 of file measures.c.

580 {
581  const POINT2D *p1, *p2;
582 
583  p1 = getPoint2d_cp(point1->point, 0);
584  p2 = getPoint2d_cp(point2->point, 0);
585 
586  return lw_dist2d_pt_pt(p1, p2, dl);
587 }
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
Definition: lwgeom_api.c:374
int lw_dist2d_pt_pt(const POINT2D *thep1, const POINT2D *thep2, DISTPTS *dl)
Compares incoming points and stores the points closest to each other or most far away from each other...
Definition: measures.c:2282
POINTARRAY * point
Definition: liblwgeom.h:414

References getPoint2d_cp(), lw_dist2d_pt_pt(), and LWPOINT::point.

Referenced by lw_dist2d_distribute_bruteforce().

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