Api > Rect > MinMaxRect()
Creates a rectangle from min/max coordinate values.
Parameters:
Name |
Type |
Description |
xmin |
number |
The minimum X coordinate. |
ymin |
number |
The minimum Y coordinate. |
xmax |
number |
The maximum X coordinate. |
ymax |
number |
The maximum Y coordinate. |
Returns:
type |
Description |
Rect |
A 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)