math docs
    Preparing search index...

    Function deltaAngle

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

      Closed at the positive end, unlike wrapAngle, so a half turn apart reads as +π.

      Parameters

      • current: number

        the current angle

      • target: number

        the target angle

      Returns number

      the shortest signed difference in (-π, π]