Method YClamp
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YClamp(Vector256<float>, Vector256<float>, Vector256<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])
.
Vector256<float> YClamp(Vector256<float> value, Vector256<float> amin, Vector256<float> amax)
Parameters
value
Vector256<float>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<float>The lower bound of the value (值的下限).
amax
Vector256<float>The upper bound of the value (值的上限).
Returns
- Vector256<float>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<double>, Vector256<double>, Vector256<double>)
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])
.
Vector256<double> YClamp(Vector256<double> value, Vector256<double> amin, Vector256<double> amax)
Parameters
value
Vector256<double>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<double>The lower bound of the value (值的下限).
amax
Vector256<double>The upper bound of the value (值的上限).
Returns
- Vector256<double>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<sbyte>, Vector256<sbyte>, Vector256<sbyte>)
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])
.
Vector256<sbyte> YClamp(Vector256<sbyte> value, Vector256<sbyte> amin, Vector256<sbyte> amax)
Parameters
value
Vector256<sbyte>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<sbyte>The lower bound of the value (值的下限).
amax
Vector256<sbyte>The upper bound of the value (值的上限).
Returns
- Vector256<sbyte>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<byte>, Vector256<byte>, Vector256<byte>)
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])
.
Vector256<byte> YClamp(Vector256<byte> value, Vector256<byte> amin, Vector256<byte> amax)
Parameters
value
Vector256<byte>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<byte>The lower bound of the value (值的下限).
amax
Vector256<byte>The upper bound of the value (值的上限).
Returns
- Vector256<byte>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<short>, Vector256<short>, Vector256<short>)
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])
.
Vector256<short> YClamp(Vector256<short> value, Vector256<short> amin, Vector256<short> amax)
Parameters
value
Vector256<short>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<short>The lower bound of the value (值的下限).
amax
Vector256<short>The upper bound of the value (值的上限).
Returns
- Vector256<short>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<ushort>, Vector256<ushort>, Vector256<ushort>)
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])
.
Vector256<ushort> YClamp(Vector256<ushort> value, Vector256<ushort> amin, Vector256<ushort> amax)
Parameters
value
Vector256<ushort>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<ushort>The lower bound of the value (值的下限).
amax
Vector256<ushort>The upper bound of the value (值的上限).
Returns
- Vector256<ushort>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<int>, Vector256<int>, Vector256<int>)
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])
.
Vector256<int> YClamp(Vector256<int> value, Vector256<int> amin, Vector256<int> amax)
Parameters
value
Vector256<int>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<int>The lower bound of the value (值的下限).
amax
Vector256<int>The upper bound of the value (值的上限).
Returns
- Vector256<int>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<uint>, Vector256<uint>, Vector256<uint>)
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])
.
Vector256<uint> YClamp(Vector256<uint> value, Vector256<uint> amin, Vector256<uint> amax)
Parameters
value
Vector256<uint>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<uint>The lower bound of the value (值的下限).
amax
Vector256<uint>The upper bound of the value (值的上限).
Returns
- Vector256<uint>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<long>, Vector256<long>, Vector256<long>)
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])
.
Vector256<long> YClamp(Vector256<long> value, Vector256<long> amin, Vector256<long> amax)
Parameters
value
Vector256<long>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<long>The lower bound of the value (值的下限).
amax
Vector256<long>The upper bound of the value (值的上限).
Returns
- Vector256<long>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also
YClamp(Vector256<ulong>, Vector256<ulong>, Vector256<ulong>)
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])
.
Vector256<ulong> YClamp(Vector256<ulong> value, Vector256<ulong> amin, Vector256<ulong> amax)
Parameters
value
Vector256<ulong>The vector that will have its clamp computed (将计算限制的向量).
amin
Vector256<ulong>The lower bound of the value (值的下限).
amax
Vector256<ulong>The upper bound of the value (值的上限).
Returns
- Vector256<ulong>
A vector whose elements are the clamped to the inclusive range of
amin
andamax
(一个向量,其元素是 限制在amin
和amax
范围内的).
- See Also