Skip to content

fastquadtree.RectItem

Bases: Item

Lightweight rectangle item wrapper for tracking and as_items results.

Source code in pysrc/fastquadtree/_item.py
def __init__(self, id_: int, geom: Bounds, obj: Any | None = None):
    super().__init__(id_, geom, obj)
    self.min_x, self.min_y, self.max_x, self.max_y = geom

__slots__ class-attribute instance-attribute

__slots__ = ('geom', 'id_', 'max_x', 'max_y', 'min_x', 'min_y', 'obj')

geom instance-attribute

geom = geom

id_ instance-attribute

id_ = id_

obj instance-attribute

obj = obj