Creates a new empty distribution.
Creates a new distribution that returns a constant value.
Creates a new distribution that returns a random value in the specified range.
OptionalisInternalConstructor: booleanCreates a new distribution that evaluates a curve.
Creates a new distribution that returns a random value in a range determined by two curves.
Returns the type of the represented distribution.
Returns the length of the distribution curve. This is 0 for PropertyDistributionType::Constant and PropertyDistributionType::RandomRange
modes. For PropertyDistributionType::Curve mode, this is the length of the curve, and for PropertyDistributionType::CurveRange
it is the length of the minimum or maximum curve, whichever is longer.
Evaluates the value of the distribution.
Time at which to evaluate the distribution. This is only relevant if the distribution contains curves.
Value in range [0, 1] that determines how to interpolate between min/max value, if the distribution represents a range. Value of 0 will return the minimum value, while value of 1 will return the maximum value, and interpolate the values in-between.
Evaluated value.
Evaluates the value of the distribution.
Time at which to evaluate the distribution. This is only relevant if the distribution contains curves.
Random number generator that determines the factor. Factor determines how to interpolate between min/max value, if the distribution represents a range.
Evaluated value.
Evaluates the value of the distribution at a normalized time.
Normalized time at which to evaluate the distribution. This is only relevant if the distribution contains curves. 0 is the start of the curves, 1 is the end of the curves.
Value in range [0, 1] that determines how to interpolate between min/max value, if the distribution represents a range. Value of 0 will return the minimum value, while value of 1 will return the maximum value, and interpolate the values in-between.
Evaluated value.
Evaluates the value of the distribution at a normalized time.
Normalized time at which to evaluate the distribution. This is only relevant if the distribution contains curves. 0 is the start of the curves, 1 is the end of the curves.
Random number generator that determines the factor. Factor determines how to interpolate between min/max value, if the distribution represents a range.
Evaluated value.
Returns the curve representing the second curve of a curve range. Only defined if the distribution represents a curve range.
Returns the curve representing the distribution, or the first curve representing a curve range. Undefined if the distribution is represented by a constant or a non-curve range.
Compares two distributions for equality.
Specifies a value as a distribution, which can include a constant value, random range or a curve.