Clamps the given value between the given minimum and maximum values.

  • Parameters

    • value: number

      number to clamp

    • min: number

      min value

    • max: number

      max value

    Returns number

    clamped value