TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Extensions for System.Byte. More...
Static Public Member Functions | |
static byte | Clamp (this byte value, byte min, byte max) |
Clamps the specified byte between a minimum and maximum value. More... | |
Extensions for System.Byte.
|
static |
Clamps the specified byte between a minimum and maximum value.
value | Value to clamp. |
min | If the specified byte is below this value, then this will be returned. |
max | If the specified byte is above this value, then this will be returned. |