choclo.utils.distance_cartesian#
- choclo.utils.distance_cartesian(easting_p, northing_p, upward_p, easting_q, northing_q, upward_q)[source]#
 Euclidean distance between two points given in Cartesian coordinates
Warning
All coordinates should be in the same units.
- Parameters:
 - easting_p
float Easting coordinate of point \(\mathbf{p}\).
- northing_p
float Northing coordinate of point \(\mathbf{p}\).
- upward_p
float Upward coordinate of point \(\mathbf{p}\).
- easting_q
float Easting coordinate of point \(\mathbf{q}\).
- northing_q
float Northing coordinate of point \(\mathbf{q}\).
- upward_q
float Upward coordinate of point \(\mathbf{q}\).
- easting_p
 - Returns:
 - distance
float Euclidean distance between
point_pandpoint_q.
- distance
 
Notes
Given two points \(\mathbf{p} = (x_p, y_p, z_p)\) and \(\mathbf{q} = (x_q, y_q, z_q)\) defined in a Cartesian coordinate system \((x, y, z)\), return the Euclidean (L2) distance between them:
\[d = \sqrt{(x_p - x_q)^2 + (y_p - y_q)^2 + (z_p - z_q)^2}\]