![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DistributionFloat.h>
Public Member Functions | |
| FFloatDistribution () | |
| void | GetValue (float Time, float *RESTRICT OutValue) const |
| void | GetRandomValue (float Time, float *RESTRICT OutValue, FRandomStream &RandomStream) const |
| void | GetRange (float *OutMin, float *OutMax) |
Public Attributes | |
| FDistributionLookupTable | Table |
Friends | |
| class | FComposableDistribution |
Type-safe floating point distribution.
Raw distribution from which one float can be looked up per entry.
| FFloatDistribution::FFloatDistribution | ( | ) |
Default constructor.
|
inline |
Samples a value randomly distributed between two values.
| Time | - Time at which to sample the distribution. |
| OutValue | - Upon return contains the sampled value. |
| RandomStream | - Random stream from which to retrieve random fractions. |
Computes the range of the distribution.
| OutMin | - The minimum value in the distribution. |
| OutMax | - The maximum value in the distribution. |
Samples a value from the distribution.
| Time | - Time at which to sample the distribution. |
| OutValue | - Upon return contains the sampled value. |
|
friend |
This distribution is built from composable distributions.
| FDistributionLookupTable FFloatDistribution::Table |