pub fn envelope<G>(
g: &G,
) -> <<G::Kind as EnvelopeStrategyForKind>::S as EnvelopeStrategy<G>>::Outputwhere
G: Geometry,
G::Kind: EnvelopeStrategyForKind,
<G::Kind as EnvelopeStrategyForKind>::S: EnvelopeStrategy<G>,Expand description
Axis-aligned bounding box of g.
Mirrors boost::geometry::envelope(g, mbr) from
boost/geometry/algorithms/envelope.hpp — the C++ side mutates
mbr in place; the Rust side returns a fresh
geometry_model::Box<G::Point>.
Supported geometry kinds: Point, Linestring, Ring, Polygon,
Segment, Box, MultiPoint, MultiLinestring, MultiPolygon —
each selected by the tag-keyed
[geometry_strategy::EnvelopeStrategyForKind] picker, so any
concept-adapted foreign type resolves through the same per-kind impl
in geometry_strategy::envelope as the equivalent model value.