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 : structParameters
- shiftAmountint
- Shift amount (位移量). 
Returns
- int
- Returns the value of - shiftAmountafter it has been limited (返回- shiftAmount被限制后的值).
Type Parameters
- T
- Target type (目标类型).