Constructors
constructor
- new BoundingBox(xMin, yMin, xMax, yMax): BoundingBox
Parameters
- xMin: number
- yMin: number
- xMax: number
- yMax: number
Accessors
height
- get height(): number
Returns number
width
- get width(): number
Returns number
Methods
contains
- contains(x, y): boolean
Returns boolean
encloses
- encloses(other): boolean
Returns boolean
intersects
- intersects(other): boolean
Returns boolean
isEmpty
- isEmpty(): boolean
Returns boolean
Static
fromCenterAndDimension
- fromCenterAndDimension(center, width, height): BoundingBox
Parameters
- center: IPoint
- width: number
- height: number