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

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

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

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

    return Pair(angle, radius)
}