engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FFloatDistribution类 参考

Type-safe floating point distribution. 更多...

#include <Distributions.h>

Public 成员函数

 FFloatDistribution ()
 Default constructor.
 
FORCEINLINE void GetRandomValue (float Time, float *RESTRICT OutValue, FRandomStream &RandomStream) const
 Samples a value randomly distributed between two values. 更多...
 
void GetRange (float *OutMin, float *OutMax)
 Computes the range of the distribution. 更多...
 
FORCEINLINE void GetValue (float Time, float *RESTRICT OutValue) const
 Samples a value from the distribution. 更多...
 

友元

class FComposableDistribution
 This distribution is built from composable distributions.
 

详细描述

Type-safe floating point distribution.

Raw distribution from which one float can be looked up per entry.

成员函数说明

◆ GetRandomValue()

FORCEINLINE void FFloatDistribution::GetRandomValue ( float  Time,
float *RESTRICT  OutValue,
FRandomStream &  RandomStream 
) const
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.

◆ GetRange()

void FFloatDistribution::GetRange ( float *  OutMin,
float *  OutMax 
)
inline

Computes the range of the distribution.

参数
OutMin- The minimum value in the distribution.
OutMax- The maximum value in the distribution.

◆ GetValue()

FORCEINLINE void FFloatDistribution::GetValue ( float  Time,
float *RESTRICT  OutValue 
) const
inline

Samples a value from the distribution.

参数
Time- Time at which to sample the distribution.
OutValue- Upon return contains the sampled value.

该类的文档由以下文件生成: