NumberRange

NumberRange

Overview

Description

The NumberRange class represents a range between a minimum and a maximum value.

Properties

Min

number

This property represents the minimum value of the range.

Code Samples

local myRange = NumberRange.new(1, 10)
print(myRange.Min) -- Output: 1

Max

number This property represents the maximum value of the range.

Code Samples

local myRange = NumberRange.new(1, 10)
print(myRange.Max) -- Output: 10

Constructors

new

Creates a new instance of the NumberRange with the given minimum and maximum values.

Parameters

number InMin

The minimum value of the range.

number InMax

The maximum value of the range.

Return

NumberRange

A new `NumberRange` object.

Code Samples

local myRange = NumberRange.new(1, 10)
print(myRange.Min) -- Output: 1
print(myRange.Max) -- Output: 10

Methods

Last updated