PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ distance2d_sqr_pt_pt()

double distance2d_sqr_pt_pt ( const POINT2D p1,
const POINT2D p2 
)

Definition at line 2312 of file measures.c.

References POINT2D::x, and POINT2D::y.

Referenced by distance2d_sqr_pt_seg(), lw_dist2d_arc_arc_concentric(), and ptarray_remove_repeated_points_minpoints().

2313 {
2314  double hside = p2->x - p1->x;
2315  double vside = p2->y - p1->y;
2316 
2317  return hside*hside + vside*vside;
2318 
2319 }
double x
Definition: liblwgeom.h:312
double y
Definition: liblwgeom.h:312
Here is the caller graph for this function: