vrecko
virtual reality framework
|
Functions | |
unsigned int | randGauss (unsigned int number, unsigned int n) |
float | randFloat (void) |
float | interpolationLinear (float a, float b, float t) |
void | clampColor (osg::Vec4f &color, float maximum) |
void clampColor | ( | osg::Vec4f & | color, |
float | maximum | ||
) |
Clamps the color in case some of its values are larger than the given maximum.
color | Color to be clamped. |
maximum | Threshold value; color channels larger than maximum will be clamped to it, smaller values will be preserved. |
float interpolationLinear | ( | float | a, |
float | b, | ||
float | t | ||
) |
Linear interpolation of two values.
a | The first value to interpolate. |
b | The second value to interpolate. |
t | Value on the interval. T = 0.0 returns as a result value A, T = 1.0 returns as a result value B |
float randFloat | ( | void | ) |
Returns a pseudo-random float value from the interval <0, 1.0)
unsigned int randGauss | ( | unsigned int | cislo, |
unsigned int | n | ||
) |
Returns a pseudo-random unsigned integer value based on Gauss distribution
[in] | number | Maximum value of the number |
[in] | n | Number of iterations |