Table of Contents

Method YClamp

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YClamp(Vector512<float>, Vector512<float>, Vector512<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 Vector512<float> YClamp(Vector512<float> value, Vector512<float> amin, Vector512<float> amax)

Parameters

value Vector512<float>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<float>

The lower bound of the value (值的下限).

amax Vector512<float>

The upper bound of the value (值的上限).

Returns

Vector512<float>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<double>, Vector512<double>, Vector512<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]).

public static Vector512<double> YClamp(Vector512<double> value, Vector512<double> amin, Vector512<double> amax)

Parameters

value Vector512<double>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<double>

The lower bound of the value (值的下限).

amax Vector512<double>

The upper bound of the value (值的上限).

Returns

Vector512<double>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<sbyte>, Vector512<sbyte>, Vector512<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]).

[CLSCompliant(false)]
public static Vector512<sbyte> YClamp(Vector512<sbyte> value, Vector512<sbyte> amin, Vector512<sbyte> amax)

Parameters

value Vector512<sbyte>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<sbyte>

The lower bound of the value (值的下限).

amax Vector512<sbyte>

The upper bound of the value (值的上限).

Returns

Vector512<sbyte>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<byte>, Vector512<byte>, Vector512<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]).

public static Vector512<byte> YClamp(Vector512<byte> value, Vector512<byte> amin, Vector512<byte> amax)

Parameters

value Vector512<byte>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<byte>

The lower bound of the value (值的下限).

amax Vector512<byte>

The upper bound of the value (值的上限).

Returns

Vector512<byte>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<short>, Vector512<short>, Vector512<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]).

public static Vector512<short> YClamp(Vector512<short> value, Vector512<short> amin, Vector512<short> amax)

Parameters

value Vector512<short>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<short>

The lower bound of the value (值的下限).

amax Vector512<short>

The upper bound of the value (值的上限).

Returns

Vector512<short>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<ushort>, Vector512<ushort>, Vector512<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]).

[CLSCompliant(false)]
public static Vector512<ushort> YClamp(Vector512<ushort> value, Vector512<ushort> amin, Vector512<ushort> amax)

Parameters

value Vector512<ushort>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<ushort>

The lower bound of the value (值的下限).

amax Vector512<ushort>

The upper bound of the value (值的上限).

Returns

Vector512<ushort>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<int>, Vector512<int>, Vector512<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]).

public static Vector512<int> YClamp(Vector512<int> value, Vector512<int> amin, Vector512<int> amax)

Parameters

value Vector512<int>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<int>

The lower bound of the value (值的下限).

amax Vector512<int>

The upper bound of the value (值的上限).

Returns

Vector512<int>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<uint>, Vector512<uint>, Vector512<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]).

[CLSCompliant(false)]
public static Vector512<uint> YClamp(Vector512<uint> value, Vector512<uint> amin, Vector512<uint> amax)

Parameters

value Vector512<uint>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<uint>

The lower bound of the value (值的下限).

amax Vector512<uint>

The upper bound of the value (值的上限).

Returns

Vector512<uint>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<long>, Vector512<long>, Vector512<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]).

public static Vector512<long> YClamp(Vector512<long> value, Vector512<long> amin, Vector512<long> amax)

Parameters

value Vector512<long>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<long>

The lower bound of the value (值的下限).

amax Vector512<long>

The upper bound of the value (值的上限).

Returns

Vector512<long>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also

YClamp(Vector512<ulong>, Vector512<ulong>, Vector512<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]).

[CLSCompliant(false)]
public static Vector512<ulong> YClamp(Vector512<ulong> value, Vector512<ulong> amin, Vector512<ulong> amax)

Parameters

value Vector512<ulong>

The vector that will have its clamp computed (将计算限制的向量).

amin Vector512<ulong>

The lower bound of the value (值的下限).

amax Vector512<ulong>

The upper bound of the value (值的上限).

Returns

Vector512<ulong>

A vector whose elements are the clamped to the inclusive range of amin and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also