PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ distance3d_pt_pt()

double distance3d_pt_pt ( const POINT3D p1,
const POINT3D p2 
)

Definition at line 818 of file measures3d.c.

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

Referenced by calc_distances_3d(), iterate_3d(), lwgeom_cpa_within(), and lwgeom_tcpa().

819 {
820  double dx = p2->x - p1->x;
821  double dy = p2->y - p1->y;
822  double dz = p2->z - p1->z;
823  return sqrt ( dx*dx + dy*dy + dz*dz);
824 }
double y
Definition: liblwgeom.h:340
double x
Definition: liblwgeom.h:340
double z
Definition: liblwgeom.h:340
Here is the caller graph for this function: