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

    Function Clamp

    • Force a value within the boundaries by clamping it to the range min, max.

      Parameters

      • value: number

        The value to be clamped.

      • min: number

        The minimum bounds.

      • max: number

        The maximum bounds.

      Returns number