Skip to content

UInt24.Clamp Method

Definition

Clamps a value to an inclusive minimum and maximum value.

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

View source

Parameters

Name Type Description
value UInt24 The value to clamp.
min UInt24 The inclusive minimum to which value should clamp.
max UInt24 The inclusive maximum to which value should clamp.

Returns

UInt24

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