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
valueExUInt128The value to clamp.
minExUInt128The inclusive minimum to which
valueshould clamp.maxExUInt128The inclusive maximum to which
valueshould clamp.
Returns
- ExUInt128
The result of clamping
valueto the inclusive range ofminandmax.
Exceptions
- ArgumentException
minis greater thanmax.