Constructors
constructor
- new Rect(x: number, y: number, width: number, height: number): Rect
Parameters
x: number
y: number
width: number
height: number
Accessors
center
- get center(): [number, number]
Methods
equals
- equals(other: Rect): boolean
Parameters
Returns boolean
gap
- gap(left: number, right: number, top: number, bottom: number): Rect
Parameters
left: number
right: number
top: number
bottom: number
gap_mut
- gap_mut(left: number, right: number, top: number, bottom: number): Rect
Parameters
left: number
right: number
top: number
bottom: number
includes
- includes(other: Rect): boolean
Parameters
Returns boolean
includesPoint
- includesPoint(__namedParameters: [number, number]): boolean
Parameters
__namedParameters: [number, number]
Returns boolean