|
| 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].
|
| |
|
|
const float | epsilon = 1E-05f |
| | The precision of float numbers.
|
| |
|
const float | sqrEpsilon = 1e-10f |
| | The square of the float number precision.
|
| |
◆ Clamp()
| static float LinearAlgebra.Float.Clamp |
( |
float |
f, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
|
static |
Clamp the value between the given minimum and maximum values.
- Parameters
-
| f | The value to clamp |
| min | The minimum value |
| max | The maximum value |
- Returns
- The clamped value
◆ Clamp01()
| static float LinearAlgebra.Float.Clamp01 |
( |
float |
f | ) |
|
|
static |
Clamp the value between to the interval [0..1].
- Parameters
-
- Returns
- The clamped value
The documentation for this class was generated from the following file:
- /home/pascal/Development/Projects/Passer/NanoBrain/NanoBrain/Assets/NanoBrain-unitypackage/Runtime/LinearAlgebra/src/Float.cs