Skip to main content

Rect.MinMaxRect(number xmin, number ymin, number xmax, number ymax)

Creates a rectangle from min/max coordinate values.

Parameters:

NameTypeDescription
xminnumberThe minimum X coordinate.
yminnumberThe minimum Y coordinate.
xmaxnumberThe maximum X coordinate.
ymaxnumberThe maximum Y coordinate.

Returns:

typeDescription
RectA rectangle matching the specified coordinates.

Usage

---@type number
local xmin;

---@type number
local ymin;

---@type number
local xmax;

---@type number
local ymax;


local val0 = Rect:MinMaxRect(xmin, ymin, xmax, ymax)