Spatial index node for quadtree

interface SpatialNode {
    agents: readonly Agent[];
    bounds: Bounds;
    children: readonly SpatialNode[];
    level: number;
}

Properties

agents: readonly Agent[]
bounds: Bounds
children: readonly SpatialNode[]
level: number