def move_angle_to_angle(theta1, theta2, p):
    """
    Move a number towards another number (here, the numbers were angles).
    args:
        theta1: The first number
        theta2: The second number
        p: The extent of movement. 1 means full movement.
    """
    return theta1 + (theta2-theta1) * p