@blinkk/degu
    Preparing search index...

    Function angleDistanceDegree

    • Determine the angular distance between two angles in degree.

      In a 360 circle, if you had one degre at 90 and another at 80, the angle distance is 10, the difference between the two.

      Examples

        mathf.angleDistanceDegree(10, 10) ==> 0
      mathf.angleDistanceDegree(30, 10) ==> -20
      mathf.angleDistanceDegree(10, 50) ==> 40 * mathf.angleDistanceDegree(10, 340) ==> -30 *

      Parameters

      • angle0: number

        The first angle in degrees.

      • angle1: number

        The second angle in degrees.

      • Optionalmax: number

        The max value at which point the numerical system repeats. In a circle this would be 360. This value defaults to 360.

      Returns number

      Distance in degrees.