Rect

A rectangle by its two corners.

Read its corners, width and height.

Constructors

Up and coming: the native runtime gives these. Today a program reads a Rect from an attribute, and shot check refuses Rect.new in a System project.

NameArgumentsReturnsDescription
Rect.new(minX: number?, minY: number?, maxX: number?, maxY: number?)Rect

Properties

NameTypeDefaultDescription
Heightnumber
MaxVector2
MinVector2
Widthnumber