Constructors
constructor
- new Bounds(): Bounds
Properties
maxX
maxX: number
maxY
maxY: number
minX
minX: number
minY
minY: number
rect
updateID
updateID: number
Methods
addBounds
- addBounds(bounds): void
Returns void
addBoundsArea
- addBoundsArea(bounds, area): void
Returns void
addBoundsMask
- addBoundsMask(bounds, mask): void
Returns void
addBoundsMatrix
- addBoundsMatrix(bounds, matrix): void
Returns void
addFrame
- addFrame(transform, x0, y0, x1, y1): void
Parameters
- transform: Transform
- x0: number
- y0: number
- x1: number
- y1: number
Returns void
addFrameMatrix
- addFrameMatrix(matrix, x0, y0, x1, y1): void
Parameters
- matrix: Matrix
- x0: number
- y0: number
- x1: number
- y1: number
Returns void
addFramePad
- addFramePad(x0, y0, x1, y1, padX, padY): void
Parameters
- x0: number
- y0: number
- x1: number
- y1: number
- padX: number
- padY: number
Returns void
addPoint
- addPoint(point): void
Returns void
addPointMatrix
- addPointMatrix(matrix, point): void
Returns void
addQuad
- addQuad(vertices): void
Returns void
addVertexData
- addVertexData(vertexData, beginOffset, endOffset): void
Parameters
- vertexData: Float32Array
- beginOffset: number
- endOffset: number
Returns void
addVertices
- addVertices(transform, vertices, beginOffset, endOffset): void
Parameters
- transform: Transform
- vertices: Float32Array
- beginOffset: number
- endOffset: number
Returns void
addVerticesMatrix
- addVerticesMatrix(matrix, vertices, beginOffset, endOffset, padX?, padY?): void
Parameters
- matrix: Matrix
- vertices: Float32Array
- beginOffset: number
- endOffset: number
Optional
padX: numberOptional
padY: number
Returns void
clear
- clear(): void
Returns void
getRectangle
- getRectangle(rect?): Rectangle
- A rectangle of the bounds
isEmpty
- isEmpty(): boolean
Returns boolean
pad
- pad(paddingX?, paddingY?): void
Parameters
Optional
paddingX: numberOptional
paddingY: number
Returns void
'Builder' pattern for bounds rectangles.
This could be called an Axis-Aligned Bounding Box. It is not an actual shape. It is a mutable thing; no 'EMPTY' or those kind of problems.
Memberof
PIXI