{"version":3,"file":"BoundingBox.js","sources":["../../src/media/BoundingBox.ts"],"sourcesContent":["/**\n * A rectangular bounding box describing the boundary of an area.\n * @memberof PIXI.utils\n * @since 7.1.0\n */\nexport class BoundingBox\n{\n    /** The left coordinate value of the bounding box. */\n    left: number;\n    /** The top coordinate value of the bounding box. */\n    top: number;\n    /** The right coordinate value of the bounding box. */\n    right: number;\n    /** The bottom coordinate value of the bounding box. */\n    bottom: number;\n\n    /**\n     * @param left - The left coordinate value of the bounding box.\n     * @param top - The top coordinate value of the bounding box.\n     * @param right - The right coordinate value of the bounding box.\n     * @param bottom - The bottom coordinate value of the bounding box.\n     */\n    constructor(left: number, top: number, right: number, bottom: number)\n    {\n        this.left = left;\n        this.top = top;\n        this.right = right;\n        this.bottom = bottom;\n    }\n\n    /** The width of the bounding box. */\n    get width(): number { return this.right - this.left; }\n    /** The height of the bounding box. */\n    get height(): number { return this.bottom - this.top; }\n\n    /** Determines whether the BoundingBox is empty. */\n    isEmpty(): boolean\n    {\n        return this.left === this.right || this.top === this.bottom;\n    }\n\n    /**\n     * An empty BoundingBox.\n     * @type {PIXI.utils.BoundingBox}\n     */\n    public static readonly EMPTY = new BoundingBox(0, 0, 0, 0);\n}\n"],"names":[],"mappings":";AAKO,MAAM,eAAN,MACP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBI,YAAY,MAAc,KAAa,OAAe,QACtD;AACS,SAAA,OAAO,MACZ,KAAK,MAAM,KACX,KAAK,QAAQ,OACb,KAAK,SAAS;AAAA,EAClB;AAAA;AAAA,EAGA,IAAI,QAAgB;AAAS,WAAA,KAAK,QAAQ,KAAK;AAAA,EAAM;AAAA;AAAA,EAErD,IAAI,SAAiB;AAAS,WAAA,KAAK,SAAS,KAAK;AAAA,EAAK;AAAA;AAAA,EAGtD,UACA;AACI,WAAO,KAAK,SAAS,KAAK,SAAS,KAAK,QAAQ,KAAK;AAAA,EACzD;AAOJ;AAzCa,aAwCc,QAAQ,IAAI,aAAY,GAAG,GAAG,GAAG,CAAC;AAxCtD,IAAM,cAAN;;"}