PostGIS  2.5.0dev-r@@SVN_REVISION@@
double distance3d_pt_pt ( const POINT3D p1,
const POINT3D p2 
)

Definition at line 795 of file measures3d.c.

References POINT3D::x, POINT3D::y, and POINT3D::z.

Referenced by calc_weighted_distances_3d(), iterate_4d(), lwgeom_cpa_within(), and lwgeom_tcpa().

796 {
797  double dx = p2->x - p1->x;
798  double dy = p2->y - p1->y;
799  double dz = p2->z - p1->z;
800  return sqrt ( dx*dx + dy*dy + dz*dz);
801 }
double y
Definition: liblwgeom.h:339
double x
Definition: liblwgeom.h:339
double z
Definition: liblwgeom.h:339

Here is the caller graph for this function: