new Tiny.Bounds()
Members
-
maxXnumber
-
- Default Value:
- 0
-
maxYnumber
-
- Default Value:
- 0
-
minXnumber
-
- Default Value:
- 0
-
minYnumber
-
- Default Value:
- 0
Methods
-
addBounds(bounds)
-
Adds other Bounds
Name Type Description boundsTiny.Bounds TODO
-
addBoundsArea(bounds, area)
-
Adds other Bounds, masked with Rectangle
Name Type Description boundsTiny.Bounds TODO
areaTiny.Rectangle TODO
-
addBoundsMask(bounds, mask)
-
Adds other Bounds, masked with Bounds
Name Type Description boundsTiny.Bounds TODO
maskTiny.Bounds TODO
-
addFrame(transform, x0, y0, x1, y1)
-
Adds sprite frame, transformed.
Name Type Description transformTiny.TransformBase TODO
x0number TODO
y0number TODO
x1number TODO
y1number TODO
-
addPoint(point)
-
This function should be inlined when its possible.
Name Type Description pointTiny.Point The point to add.
-
addQuad(vertices)
-
Adds a quad, not transformed
Name Type Description verticesFloat32Array The verts to add.
-
addVertices(transform, vertices, beginOffset, endOffset)
-
Add an array of vertices
Name Type Description transformTiny.TransformBase TODO
verticesFloat32Array TODO
beginOffsetnumber TODO
endOffsetnumber TODO
-
clear()
-
Clears the bounds and resets.
-
getRectangle(rect) ❯ {Tiny.Rectangle}
-
Can return Rectangle.EMPTY constant, either construct new rectangle, either use your rectangle
It is not guaranteed that it will return tempRectName Type Description rectTiny.Rectangle temporary object will be used if AABB is not empty
Returns:
Type Description Tiny.Rectangle A rectangle of the bounds -
isEmpty() ❯ {boolean}
-
Checks if bounds are empty.
Returns:
Type Description boolean True if empty.
