Table of Contents

Method YClamp_Pseudo

Namespace
Zyl.VectorTraits.Impl.AVector128
Assembly
VectorTraits.dll

YClamp_Pseudo(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_Pseudo(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 and amax (一个向量,其元素是 限制在 aminamax 范围内的).

See Also