/**
 * Given the coordinates of two points, calculate the distance between them.
 */
fun calculateDistance(point1: Pair<Double, Double>, point2: Pair<Double, Double>): Double {

    val (x1, y1) = point1
    val (x2, y2) = point2
    
    val distance = Math.sqrt((Math.pow((x2 - x1), 2.0) + Math.pow((y2 - y1), 2.0)))
    return distance
}
/**
 * Given the coordinates of two points, calculate the distance between them.
 */
fun calculateDistance(point1: Pair<Double, Double>, point2: Pair<Double, Double>): Double {
/**
 * Given the coordinates of two points, calculate the distance between them.
 */
fun calculateDistance(point1: Pair<Double, Double>, point2: Pair<Double, Double>): Double {

    val (x1, y1) = point1
    val (x2, y2) = point2
    
    val distance = Math.sqrt((Math.pow((x2 - x1), 2.0) + Math.pow((y2 - y1), 2.0)))
    return distance
}