Table of Contents

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 ExInt128

The value to clamp.

min ExInt128

The inclusive minimum to which value should clamp.

max ExInt128

The inclusive maximum to which value should clamp.

Returns

ExInt128

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

Exceptions

ArgumentException

min is greater than max.