Points in Boost.Geometry
Boost.Geometry states a set of requirements that a point must meet (a point interface or point concept) in order to work with the other components.
Points are constructed, then manipulated:
-
Points are constructed, usually with parameters {x0, ... xn - 1}.
-
A point's coordinates is accessed through either:
-
Namespace scoped functions:
boost::geometry::get<INDEX>(const POINT&) boost::geometry::set<INDEX>(POINT&, VALUE) -
or templatized member functions:
boost::geometry::point_type::get<INDEX>() boost::geometry::point_type::set<INDEX>(VALUE)
-
The Point Concept in Boost.Geometry
(See external Point Concept in Boost.Geometry documentation)
Implementations of Boost.Geometry Point Concept
- model::point
model::d2::point_xy- C array
- C++ std::array
A Boost.Geometry Point Implementation: model::point
(See external model::point in Boost.Geometry documentation)