Skip to main content

Module envelope

Module envelope 

Source
Expand description

envelope(&g) — the axis-aligned bounding box of g.

Mirrors boost::geometry::envelope from boost/geometry/algorithms/envelope.hpp and the implementation ladder rooted at boost/geometry/algorithms/detail/envelope/interface.hpp. The Boost free function takes the bounding box by out-parameter (envelope(g, mbr)); the Rust analogue returns the box by value because we have no const-correctness story for an out-parameter that would make ownership any clearer than a return.

Cartesian-only in v1; spherical / geographic envelope strategies arrive alongside the Haversine / Andoyer / Vincenty distance strategies in later tasks.

Functions§

envelope
Axis-aligned bounding box of g.