Vector.ClampNative<T> Method
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)
- T
- value
- Vector<T>
The vector to restrict.
- min
- Vector<T>
The minimum value.
- max
- Vector<T>
The maximum value.
The restricted vector.
Product | Versions |
---|---|
.NET | 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: