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

    val angleRad = Math.toRadians(angle)
    val x = radius * Math.cos(angleRad)
    val y = radius * Math.sin(angleRad)
    
    return Pair(x, y)
}
/**
 * This function converts the polar coordinates of a point to Cartesian coordinates.
 *
 * @param angle The angle in degrees.
 * @param radius The radius or magnitude of the point.
 * @return The Cartesian coordinates (x, y) of the point.
 */
fun polarToCartesian(angle: Double, radius: Double): Pair<Double, Double> {
/**
 * This function converts the polar coordinates of a point to Cartesian coordinates.
 *
 * @param angle The angle in degrees.
 * @param radius The radius or magnitude of the point.
 * @return The Cartesian coordinates (x, y) of the point.
 */
fun polarToCartesian(angle: Double, radius: Double): Pair<Double, Double> {

    val angleRad = Math.toRadians(angle)
    val x = radius * Math.cos(angleRad)
    val y = radius * Math.sin(angleRad)
    
    return Pair(x, y)
}