Skip to main content

Module bounds

Module bounds 

Source
Expand description

The axis-aligned bounding box used for tree keys.

Mirrors the role of boost::geometry::model::box inside the index (index/detail/bounded_view.hpp, index/detail/rtree/node/). The index does a lot of box arithmetic — area, enlargement, union, intersection — so the port uses a small concrete Bounds value rather than the generic model::Box, keeping the hot path free of trait dispatch.

2D, f64 for v1.

Structs§

Bounds
An axis-aligned bounding box in the plane.

Functions§

union_all
The union of a non-empty slice of boxes.