Constructors
constructor
- new Rect(x?, y?, width?, height?): Rect
-
Parameters
-
x: number = 0
-
y: number = 0
-
width: number = 0
-
height: number = 0
Methods
contains
- contains(x, y): boolean
-
Returns boolean
containsRect
- containsRect(rect): boolean
-
Returns boolean
copy
- copy(rect): void
-
Returns void
intersects
- intersects(rect): boolean
-
Returns boolean
set
- set(x, y, width, height): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
Returns void