Range - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a container for two-value numeric Range with different numbers.

This container assists in operations on two numbers related to each other and provided values contained within or scaled by their difference. Usually, the minimum number is expected to be lower than the maximum number, and they are not meant equal each other, as using a single number instead of a constructor is sufficient. The boundary created by two numbers of the range is inclusive, meaning numbers equal to either of them are treated as being within that range, unless it is possible to specify otherwise.

RangedValue is a similar container, which manages its value around a range of two numbers.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Modifiable
minimum
Yes
maximum
Yes

Construction types

Name
Arguments
New constructor
minimum {real}
maximum {real}
Empty
Constructor copy
other {Range}
⚠️ **GitHub.com Fallback** ⚠️