![]() |
Roboid Control for C#
|
Float number utilities.
Static Public Member Functions | |
static float | Clamp (float f, float min, float max) |
Clamp the value between the given minimum and maximum values. | |
static float | Clamp01 (float f) |
Clamp the value between to the interval [0..1]. | |
Static Public Attributes | |
const float | epsilon = 1E-05f |
The precision of float numbers. | |
const float | sqrEpsilon = 1e-10f |
The square of the float number precision. | |
|
static |
Clamp the value between the given minimum and maximum values.
f | The value to clamp |
min | The minimum value |
max | The maximum value |
|
static |
Clamp the value between to the interval [0..1].
f | The value to clamp |