UInt16.Clamp(UInt16, UInt16, UInt16) 메서드

정의

값을 포괄 최소값 및 최대값으로 고정합니다.

public:
 static System::UInt16 Clamp(System::UInt16 value, System::UInt16 min, System::UInt16 max) = System::Numerics::INumber<System::UInt16>::Clamp;
public static ushort Clamp (ushort value, ushort min, ushort max);
static member Clamp : uint16 * uint16 * uint16 -> uint16
Public Shared Function Clamp (value As UShort, min As UShort, max As UShort) As UShort

매개 변수

value
UInt16

클램프할 값입니다.

min
UInt16

클램핑해야 하는 value 포괄 최소값입니다.

max
UInt16

클램핑해야 하는 value 포괄 최댓값입니다.

반환

max의 포괄 범위로 클램핑 valuemin 결과입니다.

구현

적용 대상