math docs
    Preparing search index...

    Function deltaAngle

    • Calculates the shortest signed difference between two angles (in radians).

      Parameters

      • current: number

        the current angle

      • target: number

        the target angle

      Returns number

      the shortest signed difference in (-π, π]