Method LimitShiftAmount
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
LimitShiftAmount<T>(int)
Limit shift amount to a valid range (将位移量限制在有效范围).
public static int LimitShiftAmount<T>(int shiftAmount) where T : struct
Parameters
shiftAmountintShift amount (位移量).
Returns
- int
Returns the value of
shiftAmountafter it has been limited (返回shiftAmount被限制后的值).
Type Parameters
TTarget type (目标类型).