• Clamps a value between min / max values.

    Parameters

    • Optionalvalue: number

      Value to clamp.

    • Optionalmin: number

      Minimum value.

    • Optionalmax: number

      Maximum value.

    Returns number

    Clamped value.