Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

model::box

Class box: defines a box made of two describing points.

Description

Box is always described by a min_corner() and a max_corner() point. If another rectangle is used, use linear_ring or polygon.

Synopsis

template<typename Point>
class model::box
{
  // ...
};

Template parameter(s)

Parameter

Description

typename Point

point type. The box takes a point type as template parameter. The point type can be any point type. It can be 2D but can also be 3D or more dimensional. The box can also take a latlong point type as template parameter.

Constructor(s)

Function

Description

Parameters

box()

box(Point const & min_corner, Point const & max_corner)

Constructor taking the minimum corner point and the maximum corner point.

Point const &: min_corner:

Point const &: max_corner:

Member Function(s)

Function

Description

Parameters

Returns

Point const & min_corner()

Point const & max_corner()

Point & min_corner()

Point & max_corner()

Header

Either

#include <boost/geometry/geometries/geometries.hpp>

Or

#include <boost/geometry/geometries/box.hpp>


PrevUpHomeNext