Static methods
staticinlineget(x:Float = 0, y:Float = 0, width:Float = 1, height:Float = 1):AABB
Gets an AABB from the pool, or creates a new one if none are available. Call put()
on the AABB to place it back in the pool.
Note - The X and Y positions represent the center of the AABB. To set the AABB from its Top-Left origin, AABB.get_from_min_max()
is available.
Parameters:
x | The centered X position of the AABB. |
---|---|
y | The centered Y position of the AABB. |
width | The width of the AABB. |
height | The height of the AABB. |
Returns:
AABB
Variables
Methods
inlineset(x:Float = 0, y:Float = 0, width:Float = 1, height:Float = 1):AABB
Sets the values on this AABB.
Note - The X and Y positions represent the center of the AABB. To set the AABB from its Top-Left origin, AABB.set_from_min_max()
is available.
Parameters:
x | The centered X position of the AABB. |
---|---|
y | The centered Y position of the AABB. |
width | The width of the AABB. |
height | The height of the AABB. |
Returns:
AABB