PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ distance2d_pt_pt()

double distance2d_pt_pt ( const POINT2D p1,
const POINT2D p2 
)
inline

Definition at line 2398 of file measures.c.

2399 {
2400  double hside = p2->x - p1->x;
2401  double vside = p2->y - p1->y;
2402 
2403  return hypot(hside, vside);
2404 }
double y
Definition: liblwgeom.h:390
double x
Definition: liblwgeom.h:390

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

Referenced by calculate_mbc_2(), calculate_mbc_3(), lw_arc_side(), lw_dist2d_arc_arc(), lw_dist2d_pt_arc(), lwline_interpolate_points(), lwline_measured_from_lwline(), lwpoint_inside_circle(), mbc_test(), point_inside_circle(), project_pt_pt(), pt_continues_arc(), ptarray_append_ptarray(), ptarray_locate_point(), ptarray_segmentize2d(), ptarray_substring(), and ptarrayarc_contains_point_partial().

Here is the caller graph for this function: