molpy.util.distance

molpy.util.distance(point1, point2)[source]

Calculate distance between two points.

Parameters:
  • point1 (array_like) – The first point.
  • point2 (array_like) – The second point.
Returns:

The distance between point1 and point2.

Return type:

float