![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Distribution.h>
Public Member Functions | |
| FDistributionLookupTable () | |
| void | Empty () |
| bool | IsEmpty () const |
| float | GetValuesPerEntry () const |
| float | GetValueCount () const |
| void | GetEntry (float Time, const float *&Entry1, const float *&Entry2, float &LerpAlpha) const |
| void | GetRange (float *OutMinValues, float *OutMaxValues) |
Public Attributes | |
| float | TimeScale |
| float | TimeBias |
| TArray< float > | Values |
| uint8 | Op |
| uint8 | EntryCount |
| uint8 | EntryStride |
| uint8 | SubEntryStride |
| uint8 | LockFlag |
Lookup table for distributions.
Lookup table used to sample distributions at runtime.
|
inline |
Default constructor.
|
inline |
Empties the table of all values.
|
inline |
Get the entry for Time and the one after it for interpolating (along with an alpha for interpolation)
| Time | The time we are looking to retrieve |
| Entry1 | Out variable that is the first (or only) entry |
| Entry2 | Out variable that is the second entry (for interpolating) |
| LerpAlpha | Out variable that is the alpha for interpolating between Entry1 and Entry2 |
Get the range of values produced by the table.
| OutMinValues | - The smallest values produced by this table. |
| OutMaxValues | - The largest values produced by this table. |
|
inline |
Compute the number of values contained in the table.
|
inline |
Computes the number of Values per entry in the table.
|
inline |
Returns true if the lookup table contains no values.
| uint8 FDistributionLookupTable::EntryCount |
Number of entries in the table.
| uint8 FDistributionLookupTable::EntryStride |
Number of values between entries [1,8].
| uint8 FDistributionLookupTable::LockFlag |
Lock axes flag for vector distributions.
| uint8 FDistributionLookupTable::Op |
Operation for which the table was built.
| uint8 FDistributionLookupTable::SubEntryStride |
Number of values between sub-entries [0,4].
| float FDistributionLookupTable::TimeBias |
Absolute time of the first value
| float FDistributionLookupTable::TimeScale |
Time between values in the lookup table