engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FDistributionLookupTable结构体 参考

Lookup table for distributions. 更多...

#include <Distributions.h>

Public 成员函数

void Empty ()
 Empties the table of all values.
 
 FDistributionLookupTable ()
 Default constructor.
 
FORCEINLINE void GetEntry (float Time, const float *&Entry1, const float *&Entry2, float &LerpAlpha) const
 Get the entry for Time and the one after it for interpolating (along with an alpha for interpolation) 更多...
 
void GetRange (float *OutMinValues, float *OutMaxValues)
 Get the range of values produced by the table. 更多...
 
FORCEINLINE float GetValueCount () const
 Compute the number of values contained in the table.
 
FORCEINLINE float GetValuesPerEntry () const
 Computes the number of Values per entry in the table.
 
FORCEINLINE bool IsEmpty () const
 Returns true if the lookup table contains no values.
 

Public 属性

uint8 EntryCount
 Number of entries in the table.
 
uint8 EntryStride
 Number of values between entries [1,8].
 
uint8 LockFlag
 Lock axes flag for vector distributions.
 
uint8 Op
 Operation for which the table was built.
 
uint8 SubEntryStride
 Number of values between sub-entries [0,4].
 
float TimeBias
 Absolute time of the first value
 
float TimeScale
 Time between values in the lookup table
 
TArray< float > Values
 Values in the table.
 

详细描述

Lookup table for distributions.

Lookup table used to sample distributions at runtime.

成员函数说明

◆ GetEntry()

FORCEINLINE void FDistributionLookupTable::GetEntry ( float  Time,
const float *&  Entry1,
const float *&  Entry2,
float &  LerpAlpha 
) const
inline

Get the entry for Time and the one after it for interpolating (along with an alpha for interpolation)

参数
TimeThe time we are looking to retrieve
Entry1Out variable that is the first (or only) entry
Entry2Out variable that is the second entry (for interpolating)
LerpAlphaOut variable that is the alpha for interpolating between Entry1 and Entry2

◆ GetRange()

void FDistributionLookupTable::GetRange ( float *  OutMinValues,
float *  OutMaxValues 
)
inline

Get the range of values produced by the table.

注解
: in the case of a constant curve, this will not be exact!
参数
OutMinValues- The smallest values produced by this table.
OutMaxValues- The largest values produced by this table.

该结构体的文档由以下文件生成: