Latite Scripting Documentation (Exports)
Exports > gfx/graphics > Rect
Class
A class representing a rectangle on the screen.
left The x coordinate of the top-left point.
top The y coordinate of the top-left point.
right The x coordinate of the bottom-right point.
bottom The y coordinate of the bottom-right point.
Source: gfx/graphics.d.ts:8
new Rect( left:
number, top:number, right:number, bottom:number):Rect
Source: gfx/graphics.d.ts:16
| Parameter | Type | Description |
|---|---|---|
| left | number |
The x coordinate of the top-left point. |
| top | number |
The y coordinate of the top-left point. |
| right | number |
The x coordinate of the bottom-right point. |
| bottom | number |
The y coordinate of the bottom-right point. |
bottom:
number
Source: gfx/graphics.d.ts:21
left:
number
Source: gfx/graphics.d.ts:18
right:
number
Source: gfx/graphics.d.ts:20
top:
number
Source: gfx/graphics.d.ts:19
getHeight():
number
Source: gfx/graphics.d.ts:24
number
getWidth():
number
Source: gfx/graphics.d.ts:23
number