PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ distance2d_sqr_pt_pt()

static double distance2d_sqr_pt_pt ( const POINT2D p1,
const POINT2D p2 
)
inlinestatic

Definition at line 35 of file lwinline.h.

36 {
37  double hside = p2->x - p1->x;
38  double vside = p2->y - p1->y;
39 
40  return hside * hside + vside * vside;
41 }
double y
Definition: liblwgeom.h:376
double x
Definition: liblwgeom.h:376

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

Referenced by distance2d_sqr_pt_seg(), kmeans_init(), lw_dist2d_arc_arc_concentric(), lwgeom_remove_repeated_points_in_place(), ptarray_dp_findsplit_in_place(), ptarray_remove_repeated_points_in_place(), rect_tree_node_sort(), and update_r().

Here is the caller graph for this function: