PostGIS  2.1.10dev-r@@SVN_REVISION@@
double distance2d_sqr_pt_pt ( const POINT2D p1,
const POINT2D p2 
)

Definition at line 2133 of file measures.c.

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

Referenced by distance2d_sqr_pt_seg().

2134 {
2135  double hside = p2->x - p1->x;
2136  double vside = p2->y - p1->y;
2137 
2138  return hside*hside + vside*vside;
2139 
2140 }
double x
Definition: liblwgeom.h:284
double y
Definition: liblwgeom.h:284

Here is the caller graph for this function: