Constructors
constructor
- new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle
-
Parameters
-
Optional x: number
-
Optional y: number
-
Optional width: number
-
Optional height: number
Properties
bottom
bottom: number
height
height: number
left
left: number
right
right: number
top
top: number
type
type: number
width
width: number
x
x: number
y
y: number
Static EMPTY
Methods
clone
-
contains
- contains(x: number, y: number): boolean
-
Parameters
Returns boolean
copy
-
Parameters
enlarge
-
Parameters
Returns void
fit
-
Parameters
Returns void
pad
- pad(paddingX: number, paddingY: number): void
-
Parameters
-
paddingX: number
-
paddingY: number
Returns void