Rect
An axis-aligned rectangle from its top-left
the empty rectangle at the origin.
min to its bottom-right max. The default isthe empty rectangle at the origin.
Used as Input
0
functions accept this type(+16 nested)
Used as Output
0
functions return this type(+11 nested)
Type Definition
6 nested items
struct— An axis-aligned rectangle from its top-left
min to its bottom-right max. The default isx*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).
x*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).
Example JSON Value
json
{
"max": {
"x": 0.2,
"y": 0.2
},
"min": {
"x": 0.2,
"y": 0.2
}
}