Table of Contents

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 ExUInt128

The value to clamp.

min ExUInt128

The inclusive minimum to which value should clamp.

max ExUInt128

The inclusive maximum to which value should clamp.

Returns

ExUInt128

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

Exceptions

ArgumentException

min is greater than max.