def IsSameDirection(srcAngle, destAngle, angleThr):
    """
    If diff of srcAngle and destAngle exceed the angleThr, return False.
    Otherwise return True
    """
    diffAngle = (360 + destAngle - srcAngle) % 360
    if (0 <= diffAngle <= angleThr) or (360 - angleThr <= diffAngle <= 360):
        return True

    return False