NumberRange
Represents a numeric minimum and maximum.
Behavior
NumberRange stores two numeric bounds. Particle emitters use ranges to select
values independently for each particle. A single constructor argument sets both
bounds to the same value.
Summary
Constructors1
Constructors
new
NumberRange.new(min: number, max: number?): NumberRangeCreates a range from a minimum and maximum. A single argument creates a range with equal bounds.
Properties
Max
NumberRange.Max: numberThe upper bound.
Min
NumberRange.Min: numberThe lower bound.
Operators
__eq · __tostring · __type
Example
local speed = NumberRange.new(4, 6)