Skip to content

fastquadtree.PointItem

Bases: Item

Lightweight point item wrapper for tracking and as_items results.

Source code in pysrc/fastquadtree/_item.py
def __init__(self, id_: int, geom: Point, obj: Any | None = None):
    super().__init__(id_, geom, obj)
    self.x, self.y = geom

__slots__ class-attribute instance-attribute

__slots__ = ('geom', 'id_', 'obj', 'x', 'y')

geom instance-attribute

geom = geom

id_ instance-attribute

id_ = id_

obj instance-attribute

obj = obj