• Linearly interpolates between two angles (in degrees) by taking the shortest direction around the circle.

    Parameters

    • angle1: number

      Starting angle, in degrees.

    • angle2: number

      Destination angle, in degrees.

    • x: number

      The interpolation value between 0 and 1.

    Returns number

    Return the interpolated angle, in degrees.