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