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