FVectorDistribution

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

Windows
MacOS
Linux

Syntax

class FVectorDistribution

Remarks

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

Constructors

Name Description

Public function

FVectorDistribution()

Default constructor.

Functions

Name Description

Public function Const

void

 

GetRandomValue

(
    float Time,
    float*__restrict OutValue,
    FRandomStream& RandomStream
)

Samples a value randomly distributed between two values.

Public function

void

 

GetRange

(
    FVector* OutMin,
    FVector* OutMax
)

Computes the range of the distribution.

Public function Const

void

 

GetValue

(
    float Time,
    float*__restrict OutValue
)

Samples a value from the distribution.

References

Module

Engine

Header

Runtime/Engine/Public/Distributions.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback