phaser - v4.0.0-rc.4
    Preparing search index...

    Function GetShortestDistance

    • Gets the shortest signed angular distance from angle1 to angle2. A positive distance is a clockwise rotation. A negative distance is a counter-clockwise rotation.

      For calculation in degrees use Phaser.Math.Angle.ShortestBetween instead.

      Parameters

      • angle1: number

        The first angle in radians.

      • angle2: number

        The second angle in radians.

      Returns number