|
Krita Source Code Documentation
|
Class that can generate uniformly distributed values in the [0..1) range. More...
#include <KisSprayRandomDistributions.h>
Inheritance diagram for KisSprayUniformDistribution:Public Member Functions | |
| bool | isValid () const |
| Return if this object is correctly initialized and can be used to generate values. | |
| double | max () const |
| Return the maximum value that this distribution can produce. | |
| double | min () const |
| Return the minimum value that this distribution can produce. | |
| double | operator() (KisRandomSourceSP rs) const |
| Get a random value between min and max that follows a uniform distribution. | |
Class that can generate uniformly distributed values in the [0..1) range.
Definition at line 88 of file KisSprayRandomDistributions.h.
|
inline |
Return if this object is correctly initialized and can be used to generate values.
Definition at line 113 of file KisSprayRandomDistributions.h.
|
inline |
Return the maximum value that this distribution can produce.
Definition at line 107 of file KisSprayRandomDistributions.h.
|
inline |
Return the minimum value that this distribution can produce.
Definition at line 102 of file KisSprayRandomDistributions.h.
| double KisSprayUniformDistribution::operator() | ( | KisRandomSourceSP | rs | ) | const |
Get a random value between min and max that follows a uniform distribution.
| rs | The random source object that will be used to get a uniform value |
Definition at line 220 of file KisSprayRandomDistributions.cpp.
References KisRandomSource::generateNormalized().