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

Definition at line 771 of file measures3d.c.

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

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

772 {
773  double dx = p2->x - p1->x;
774  double dy = p2->y - p1->y;
775  double dz = p2->z - p1->z;
776  return sqrt ( dx*dx + dy*dy + dz*dz);
777 }
double y
Definition: liblwgeom.h:324
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324

Here is the caller graph for this function: