Rediger

Del via


UInt32.Clamp(UInt32, UInt32, UInt32) Method

Definition

Clamps a value to an inclusive minimum and maximum value.

public:
 static System::UInt32 Clamp(System::UInt32 value, System::UInt32 min, System::UInt32 max) = System::Numerics::INumber<System::UInt32>::Clamp;
public static uint Clamp (uint value, uint min, uint max);
static member Clamp : uint32 * uint32 * uint32 -> uint32
Public Shared Function Clamp (value As UInteger, min As UInteger, max As UInteger) As UInteger

Parameters

value
UInt32

The value to clamp.

min
UInt32

The inclusive minimum to which value should clamp.

max
UInt32

The inclusive maximum to which value should clamp.

Returns

The result of clamping value to the inclusive range of min and max.

Implements

Applies to