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