PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ distance2d_pt_pt()

double distance2d_pt_pt ( const POINT2D p1,
const POINT2D p2 
)

The old function nessecary for ptarray_segmentize2d in ptarray.c.

Definition at line 2302 of file measures.c.

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

Referenced by distance2d_pt_seg(), lw_arc_side(), lw_dist2d_arc_arc(), lw_dist2d_pt_arc(), LWGEOM_line_interpolate_point(), lwline_measured_from_lwline(), lwpoint_inside_circle(), pt_continues_arc(), ptarray_append_ptarray(), ptarray_locate_point(), ptarray_segmentize2d(), ptarray_substring(), and ptarrayarc_contains_point_partial().

2303 {
2304  double hside = p2->x - p1->x;
2305  double vside = p2->y - p1->y;
2306 
2307  return sqrt ( hside*hside + vside*vside );
2308 
2309 }
double x
Definition: liblwgeom.h:312
double y
Definition: liblwgeom.h:312
Here is the caller graph for this function: