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