PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ distance3d_pt_pt()

double distance3d_pt_pt ( const POINT3D p1,
const POINT3D p2 
)

Definition at line 815 of file measures3d.c.

816 {
817  double dx = p2->x - p1->x;
818  double dy = p2->y - p1->y;
819  double dz = p2->z - p1->z;
820  return sqrt ( dx*dx + dy*dy + dz*dz);
821 }
double z
Definition: liblwgeom.h:343
double x
Definition: liblwgeom.h:343
double y
Definition: liblwgeom.h:343

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

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

Here is the caller graph for this function: