Skip to content

getGlobalBounds

getGlobalBounds(pTarget, pRect?): Rectangle

Calculates bounding box in global coordinate space

Parameters

pTarget: DisplayObject

local coordinate space

pRect?: Rectangle

optional rectangle in local coordinate space, defaults to pTarget.getLocalBounds()

Returns

Rectangle

Source

src/utils/PixiUtils.ts:235