Interface QuadtreeLeaf<T>

Leaf node of the quadtree.

interface QuadtreeLeaf {
    data: T;
    length?: undefined;
    next?: QuadtreeLeaf<T>;
}

Type Parameters

  • T

Properties

Properties

data: T

The data associated with this point, as passed to quadtree.add.

length?: undefined

The length property may be used to distinguish leaf nodes from internal nodes: it is undefined for leaf nodes, and 4 for internal nodes.

next?: QuadtreeLeaf<T>

The next datum in this leaf, if any.