Engine API Reference - v2.6.1
    Preparing search index...

    Function clamp

    • Clamp a number between min and max inclusive.

      Parameters

      • value: number

        Number to clamp.

      • min: number

        Min value.

      • max: number

        Max value.

      Returns number

      The clamped value.