...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Macro to register a 2D point type (const version)
The macro BOOST_GEOMETRY_REGISTER_POINT_2D_CONST registers a two-dimensional point type such that it is recognized by Boost.Geometry and that Boost.Geometry functionality can used with the specified type. The const version registers only read access to the fields, the point type is therefore read-only. For geographic coordinate systems, be sure to specify first longitude and then latitude, to be able to use the strategies included in the library.
#define BOOST_GEOMETRY_REGISTER_POINT_2D_CONST(Point, CoordinateType, CoordinateSystem, Field0, Field1)
Name |
Description |
---|---|
Point |
Point type to be registered |
CoordinateType |
Type of the coordinates of the point (e.g. double) |
CoordinateSystem |
Coordinate system (e.g. cs::cartesian) |
Field0 |
Member containing first (usually x, or longitude) coordinate |
Field1 |
Member containing second (usually y, or latitude) coordinate |
#include <boost/geometry/geometries/register/point.hpp>