NumberRange

Show Deprecated

The NumberRange represents a range of numbers.

Summary

Constructors

Properties

Constructors

new

Returns a new NumberRange with the minimum and maximum set to the value.

Parameters

value: number

new

Returns a new NumberRange with the provided minimum and maximum. The minimum must be less than or equal to maximum.

Parameters

minimum: number
maximum: number

Properties

The minimum value of the NumberRange, always less than or equal to the maximum.

The maximum value of the NumberRange, always greater than or equal to the minimum.