Method YClamp_NoPseudo
- Namespace
- Zyl.VectorTraits.Impl.AVector128
- Assembly
- VectorTraits.dll
YClamp_NoPseudo(Vector128<float>, Vector128<float>, Vector128<float>)
Computes the numerical clamp of each element in a vector (计算向量中每个元素的数值限制).
Mnemonic: rt[i] := clamp(value[i], amin[i], amax[i]) = min(max(amin[i], value[i]), amax[i])
.
public static Vector128<float> YClamp_NoPseudo(Vector128<float> value, Vector128<float> amin, Vector128<float> amax)
Parameters
value
Vector128<float>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector128<float>The lower bound of the value (值的下限).
amax
Vector128<float>The upper bound of the value (值的上限).
Returns
- Vector128<float>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also