import math


def get_angle(x, y):
    """Get angle based on the unit circle.

    Parameters
    ----------
    x : float
        x-value
    y : float
        y-value

    Return: float
        angle
    """
    if x == 0:
        if y > 0:
            return 90
        else:
            return 270
    elif x < 0:
        return math.degrees(math.atan(y / x)) + 180

    return math.degrees(math.atan(y / x))