Method Clamp
- Namespace
- Zyl.VectorTraits.ExTypes
- Assembly
- VectorTraits.dll
Clamp(ExUInt128, ExUInt128, ExUInt128)
Clamps a value to an inclusive minimum and maximum value.
public static ExUInt128 Clamp(ExUInt128 value, ExUInt128 min, ExUInt128 max)
Parameters
value
ExUInt128The value to clamp.
min
ExUInt128The inclusive minimum to which
value
should clamp.max
ExUInt128The inclusive maximum to which
value
should clamp.
Returns
- ExUInt128
The result of clamping
value
to the inclusive range ofmin
andmax
.
Exceptions
- ArgumentException
min
is greater thanmax
.