import math


def svo_angle(mean_allocation_self, mean_allocation_other):
    """
    Calculate a person's social value orientation angle (based on the slider measure).

    params: A mean allocation to self and a mean allocation to other, based on the six primary items of the SVO slider
    returns: The person's social value orientation angle
    effects: None
    """

    # With the default values of the slider measure, the origin is at 0,0 but the center of the circle is at 50,50
    # By subtracting 50 from both mean allocations we compute the angle from the center of the circle
    return math.degrees(math.atan2(mean_allocation_other - 50, mean_allocation_self - 50))