def angleAverage(th1, th2, alpha):
    return math.atan2(alpha * math.sin(th1) + (1 - alpha) * math.sin(th2),
                      alpha * math.cos(th1) + (1 - alpha) * math.cos(th2))
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/util.py/angleAverage/original