Skip to main content

NumberRangeUtils

Utility functions involving the NumberRange structure in Roblox

Functions

scale

NumberRangeUtils.scale(
numberRangeNumberRange,
scalenumber
) → NumberRange

Scales a NumberRange by the given amount.

getValue

NumberRangeUtils.getValue(
numberRangeNumberRange,
tnumber
) → number

Gets a NumberRange's value

Show raw api
{
    "functions": [
        {
            "name": "scale",
            "desc": "Scales a NumberRange by the given amount.",
            "params": [
                {
                    "name": "numberRange",
                    "desc": "",
                    "lua_type": "NumberRange"
                },
                {
                    "name": "scale",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "NumberRange"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "src/numberrangeutils/src/Shared/NumberRangeUtils.lua"
            }
        },
        {
            "name": "getValue",
            "desc": "Gets a NumberRange's value",
            "params": [
                {
                    "name": "numberRange",
                    "desc": "",
                    "lua_type": "NumberRange"
                },
                {
                    "name": "t",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 28,
                "path": "src/numberrangeutils/src/Shared/NumberRangeUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "NumberRangeUtils",
    "desc": "Utility functions involving the [NumberRange] structure in Roblox",
    "source": {
        "line": 5,
        "path": "src/numberrangeutils/src/Shared/NumberRangeUtils.lua"
    }
}