• Clamps the x to be between a and b.

    Parameters

    • value: number

      Value to be clamped.

    • min: number

      Minimum value.

    • max: number

      Maximum value.

    Returns number