geometry_analysis.calculate_distance¶
-
geometry_analysis.
calculate_distance
(rA, rB)¶ Calculate the distance between points A and B.
- Parameters
rA (numpy array) – The x, y, z coordinates of point A
rB (numpy array) – The x, y, z coordinates of point B
- Returns
distance – The distance between points A and B.
- Return type
float
Examples
>>> r1 = np.array([0, 0, 0]) >>> r2 = np.array([0, 0.1, 0]) >>> calculate_distance(r1, r2) 0.1