def angle(self, x, y):
        result = Double.NaN
        if x == 0:
            if y > 0:
                result = math.pi/2.

            elif y < 0:
                result = 3*math.pi/2.


        elif x> 0  and  y >= 0:
            result = math.atan(y/x)

        elif x<0  and  y >= 0:
            result = math.pi - math.atan(-y/x)

        elif x <0  and  y < 0:
            result = math.pi + math.atan(y/x)

        elif x > 0  and  y < 0:
            result = 2*math.pi- math.atan(-y/x)


        return result


    # is the given angle between the two angles given?
dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py/PieSliceSymbolType.angle/original