Vector128.Clamp<T> Methode

Definitie

Hiermee beperkt u een vector tussen een minimum- en maximumwaarde.

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector128<T> Clamp(System::Runtime::Intrinsics::Vector128<T> value, System::Runtime::Intrinsics::Vector128<T> min, System::Runtime::Intrinsics::Vector128<T> max);
public static System.Runtime.Intrinsics.Vector128<T> Clamp<T>(System.Runtime.Intrinsics.Vector128<T> value, System.Runtime.Intrinsics.Vector128<T> min, System.Runtime.Intrinsics.Vector128<T> max);
static member Clamp : System.Runtime.Intrinsics.Vector128<'T> * System.Runtime.Intrinsics.Vector128<'T> * System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector128<'T>
Public Function Clamp(Of T) (value As Vector128(Of T), min As Vector128(Of T), max As Vector128(Of T)) As Vector128(Of T)

Type parameters

T

Het type van de elementen in de vector.

Parameters

value
Vector128<T>

De vector die moet worden beperkt.

min
Vector128<T>

De minimumwaarde.

max
Vector128<T>

De maximumwaarde.

Retouren

De beperkte vector.

Uitzonderingen

Het type elementen in de vector (T) wordt niet ondersteund.

Van toepassing op