2020-08-18 13:54:53 +02:00
|
|
|
import { Box } from './Box';
|
|
|
|
|
|
|
|
export interface IBoundingBox {
|
|
|
|
left: number
|
|
|
|
top: number
|
|
|
|
right: number
|
|
|
|
bottom: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export class BoundingBox extends Box<BoundingBox> implements IBoundingBox {
|
|
|
|
constructor(left: number, top: number, right: number, bottom: number, allowNegativeDimensions: boolean = false) {
|
2020-12-23 17:26:55 +01:00
|
|
|
super({
|
|
|
|
left, top, right, bottom,
|
|
|
|
}, allowNegativeDimensions);
|
2020-08-18 13:54:53 +02:00
|
|
|
}
|
2020-12-23 17:26:55 +01:00
|
|
|
}
|