Method ClampToByte
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
ClampToByte(int)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
public static byte ClampToByte(int value)
Parameters
value
intThe value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(uint)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
[CLSCompliant(false)]
public static byte ClampToByte(uint value)
Parameters
value
uintThe value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(long)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
public static byte ClampToByte(long value)
Parameters
value
longThe value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(ulong)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
[CLSCompliant(false)]
public static byte ClampToByte(ulong value)
Parameters
value
ulongThe value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(ExInt128)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
public static byte ClampToByte(ExInt128 value)
Parameters
value
ExInt128The value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(ExUInt128)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
[CLSCompliant(false)]
public static byte ClampToByte(ExUInt128 value)
Parameters
value
ExUInt128The value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(Int128)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
public static byte ClampToByte(Int128 value)
Parameters
value
Int128The value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).
ClampToByte(UInt128)
Returns value
clamped to the inclusive range of 0 and byte.MaxValue
(返回限制在 0 和 byte.MaxValue
范围内的 value
).
[CLSCompliant(false)]
public static byte ClampToByte(UInt128 value)
Parameters
value
UInt128The value to be clamped (要限制的值).
Returns
- byte
Returns clamped value (返回限制后的值).