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
valueExInt128The value to clamp.
minExInt128The inclusive minimum to which
valueshould clamp.maxExInt128The inclusive maximum to which
valueshould clamp.
Returns
- ExInt128
The result of clamping
valueto the inclusive range ofminandmax.
Exceptions
- ArgumentException
minis greater thanmax.