Packed static spatial index (Hilbert R-tree) for 2D/3D AABBs — SIMD range, kNN, raycast, and spatial-join queries, with zero-copy and streaming serialization.
/// High bit of the stacked level word, set when the query fully contains a node so
/// its whole subtree can be collected without further overlap tests.
pub(crate)constCONTAINED_FLAG:usize=1usize<<(usize::BITS-1);pub(crate)constLEVEL_MASK:usize=!CONTAINED_FLAG;#[inline]pub(crate)fnencode_level(level:usize, contained:bool)->usize{if contained {
level |CONTAINED_FLAG}else{
level
}}