Creates an instance of NumberRange.
The initial value.
Optional_min: number = 0The minimum bound.
Optional_max: number = 0The maximum bound.
Optional_step: number = 0The increment step.
Protected_Protected_The maximum bound.
Protected_The minimum bound.
Protected_Protected_The increment step.
Protected_Protected_The initial value.
Gets the maximum bound.
Sets the maximum bound. If it is less than the minimum, min is adjusted to match max. Re-clamps the current value.
The new maximum.
Gets the minimum bound.
Sets the minimum bound. If it exceeds the maximum, max is adjusted to match min. Re-clamps the current value.
The new minimum.
Gets the increment step.
Sets the increment step.
The new step.
Gets the current value.
Sets the current value, clamping it between min and max.
The new value.
ProtecteddeserializeDeserializes the range's state from a JSON object.
The JSON object to deserialize from.
ProtectedgetProtectedserializeSerializes the range's state to a JSON object.
Represents a numeric value constrained within a defined range. It provides mechanisms for clamping the value and ensuring bounds integrity.