Vector.ClampNative<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Restricts a vector between a minimum and a maximum value using platform specific behavior for NaN
and NegativeZero
..
public:
generic <typename T>
static System::Numerics::Vector<T> ClampNative(System::Numerics::Vector<T> value, System::Numerics::Vector<T> min, System::Numerics::Vector<T> max);
public static System.Numerics.Vector<T> ClampNative<T> (System.Numerics.Vector<T> value, System.Numerics.Vector<T> min, System.Numerics.Vector<T> max);
static member ClampNative : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Function ClampNative(Of T) (value As Vector(Of T), min As Vector(Of T), max As Vector(Of T)) As Vector(Of T)
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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.