MutablePoint2DPool

Object pool for MutablePoint2D to reduce allocations.

Constructor

MutablePoint2DPool(initial_size: int = 4096)

Methods

get

get(x: float = 0.0, y: float = 0.0) -> MutablePoint2D

Get a point from pool with given coordinates.

reset

reset()

Reset pool index. Call at start of each frame.

Properties

capacity
used