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

#include <DistributionVector.h>

Public Member Functions

 FVector4Distribution ()
 
void GetValue (float Time, float *RESTRICT OutValue) const
 
void GetRandomValue (float Time, float *RESTRICT OutValue, FRandomStream &RandomStream) const
 
void GetRange (FVector4f *OutMin, FVector4f *OutMax)
 
void GetRange (FVector4d *OutMin, FVector4d *OutMax)
 

Public Attributes

FDistributionLookupTable Table
 

Friends

class FComposableDistribution
 

Detailed Description

Type-safe 4-vector distribution.

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

Constructor & Destructor Documentation

◆ FVector4Distribution()

FVector4Distribution::FVector4Distribution ( )

Default constructor.

Member Function Documentation

◆ GetRandomValue()

void FVector4Distribution::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 FVector4Distribution::GetRange ( FVector4d OutMin,
FVector4d OutMax 
)
inline

◆ GetRange() [2/2]

void FVector4Distribution::GetRange ( FVector4f OutMin,
FVector4f 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 FVector4Distribution::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 FVector4Distribution::Table

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