Skip to content

UInt24.Clamp Method ​

Definition ​

Clamps a value to an inclusive minimum and maximum value.

c#
public static UInt24 Clamp(UInt24 value, UInt24 min, UInt24 max);

View source

Parameters ​

NameTypeDescription
valueUInt24The value to clamp.
minUInt24The inclusive minimum to which value should clamp.
maxUInt24The inclusive maximum to which value should clamp.

Returns ​

UInt24

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