pyaesthetics.linesdetection.calculate_distance

pyaesthetics.linesdetection.calculate_distance(x1, y1, x2, y2)

Calculate the distance between two points (x1, y1) and (x2, y2).

Parameters:
  • x1 (float) – The x-coordinate of the first point.

  • y1 (float) – The y-coordinate of the first point.

  • x2 (float) – The x-coordinate of the second point.

  • y2 (float) – The y-coordinate of the second point.

Returns:

The distance between the two points.

Return type:

float