/**
 * Convert Cartesian coordinates to polar coordinates.
 *
 * @param x The x-coordinate of the point.
 * @param y The y-coordinate of the point.
 * @return The polar coordinates (radius, angle) of the point.
 */
fun cartesianToPolar(x: Double, y: Double): Pair<Double, Double> {

    val radius = Math.sqrt(x * x + y * y)
    val angle = Math.toDegrees(Math.atan2(y, x))
    return Pair(radius, angle)
}
/**
 * Convert Cartesian coordinates to polar coordinates.
 *
 * @param x The x-coordinate of the point.
 * @param y The y-coordinate of the point.
 * @return The polar coordinates (radius, angle) of the point.
 */
fun cartesianToPolar(x: Double, y: Double): Pair<Double, Double> {
/**
 * Convert Cartesian coordinates to polar coordinates.
 *
 * @param x The x-coordinate of the point.
 * @param y The y-coordinate of the point.
 * @return The polar coordinates (radius, angle) of the point.
 */
fun cartesianToPolar(x: Double, y: Double): Pair<Double, Double> {

    val radius = Math.sqrt(x * x + y * y)
    val angle = Math.toDegrees(Math.atan2(y, x))
    return Pair(radius, angle)
}