UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FVectorDistribution Class Reference

#include <DistributionVector.h>

Public Member Functions

 FVectorDistribution ()
 
void GetValue (float Time, float *RESTRICT OutValue) const
 
void GetRandomValue (float Time, float *RESTRICT OutValue, FRandomStream &RandomStream) const
 
void GetRange (FVector3f *OutMin, FVector3f *OutMax)
 
void GetRange (FVector3d *OutMin, FVector3d *OutMax)
 

Public Attributes

FDistributionLookupTable Table
 

Friends

class FComposableDistribution
 

Detailed Description

Type-safe vector distribution.

Raw distribution from which three floats can be looked up per entry.

Constructor & Destructor Documentation

◆ FVectorDistribution()

FVectorDistribution::FVectorDistribution ( )

Default constructor.

Member Function Documentation

◆ GetRandomValue()

void FVectorDistribution::GetRandomValue ( float  Time,
float *RESTRICT  OutValue,
FRandomStream RandomStream 
) const
inline

Samples a value randomly distributed between two values.

Parameters
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() [1/2]

void FVectorDistribution::GetRange ( FVector3d OutMin,
FVector3d OutMax 
)
inline

◆ GetRange() [2/2]

void FVectorDistribution::GetRange ( FVector3f OutMin,
FVector3f OutMax 
)
inline

Computes the range of the distribution.

Parameters
OutMin- The minimum value in the distribution.
OutMax- The maximum value in the distribution.

◆ GetValue()

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

Samples a value from the distribution.

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

Friends And Related Symbol Documentation

◆ FComposableDistribution

This distribution is built from composable distributions.

Member Data Documentation

◆ Table

FDistributionLookupTable FVectorDistribution::Table

The documentation for this class was generated from the following files: