• 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.