envelope

# envelope: calculate envelope (minimum bounding rectangle) of a geometry

typename Geometry
typename Box
void void boost::geometry::envelope (Geometry const &geometry, Box &mbr) envelope Geometry const & geometry Box & mbr

Calculates the envelope of a geometry.

The free function envelope calculates the envelope (also known as axis aligned bounding box, aabb, or minimum bounding rectangle, mbr) of a geometry. Geometry

Any type fulfilling a Geometry Concept

Box

Any type fulfilling a Box Concept

geometry

A model of the specified concept

mbr

A model of the specified Box Concept which is set to the \1

[include reference/algorithms/envelope.qbk] [heading Example] [envelope] [envelope_output]
typename Box
typename Geometry
Box Box boost::geometry::return_envelope (Geometry const &geometry) return_envelope Geometry const & geometry

Calculates the envelope of a geometry.

The free function return_envelope calculates the envelope (also known as axis aligned bounding box, aabb, or minimum bounding rectangle, mbr) of a geometry. This version with the return_ prefix returns the envelope, and a template parameter must therefore be specified in the call. Box

Any type fulfilling a Box Concept

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

The calculated \1

[include reference/algorithms/envelope.qbk] [heading Example] [return_envelope] [return_envelope_output]