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: Bounds): void
Returns void
addBoundsArea
- addBoundsArea(bounds: Bounds, area: Rectangle): void
Returns void
addBoundsMask
- addBoundsMask(bounds: Bounds, mask: Bounds): void
Returns void
addBoundsMatrix
- addBoundsMatrix(bounds: Bounds, matrix: Matrix): void
Returns void
addFrame
- addFrame(
transform: Transform,
x0: number,
y0: number,
x1: number,
y1: number,
): void Parameters
- transform: Transform
- x0: number
- y0: number
- x1: number
- y1: number
Returns void
addFrameMatrix
- addFrameMatrix(
matrix: Matrix,
x0: number,
y0: number,
x1: number,
y1: number,
): void Parameters
- matrix: Matrix
- x0: number
- y0: number
- x1: number
- y1: number
Returns void
addFramePad
- addFramePad(
x0: number,
y0: number,
x1: number,
y1: number,
padX: number,
padY: number,
): void Parameters
- x0: number
- y0: number
- x1: number
- y1: number
- padX: number
- padY: number
Returns void
addPoint
- addPoint(point: IPointData): void
Returns void
addPointMatrix
- addPointMatrix(matrix: Matrix, point: IPointData): void
Returns void
addQuad
- addQuad(vertices: Float32Array): void
Returns void
addVertexData
- addVertexData(
vertexData: Float32Array,
beginOffset: number,
endOffset: number,
): void Parameters
- vertexData: Float32Array
- beginOffset: number
- endOffset: number
Returns void
addVertices
- addVertices(
transform: Transform,
vertices: Float32Array,
beginOffset: number,
endOffset: number,
): void Parameters
- transform: Transform
- vertices: Float32Array
- beginOffset: number
- endOffset: number
Returns void
addVerticesMatrix
- addVerticesMatrix(
matrix: Matrix,
vertices: Float32Array,
beginOffset: number,
endOffset: number,
padX?: number,
padY?: number,
): 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): Rectangle
- A rectangle of the bounds
isEmpty
- isEmpty(): boolean
Returns boolean
pad
- pad(paddingX?: number, paddingY?: number): 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