Vector.ClampNative<T> Method

Definition

Restricts a vector between a minimum and a maximum value using platform specific behavior for NaN and NegativeZero..

C#
public static System.Numerics.Vector<T> ClampNative<T>(System.Numerics.Vector<T> value, System.Numerics.Vector<T> min, System.Numerics.Vector<T> max);

Type Parameters

T

Parameters

value
Vector<T>

The vector to restrict.

min
Vector<T>

The minimum value.

max
Vector<T>

The maximum value.

Returns

The restricted vector.

Applies to

Product Versions
.NET 9, 10