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
BOOST_GEOMETRY_REGISTER_POINT_3D_GET_SET

Macro to register a 3D point type (having separate get/set methods)

Description

The macro BOOST_GEOMETRY_REGISTER_POINT_3D_GET_SET registers a three-dimensional point type such that it is recognized by Boost.Geometry and that Boost.Geometry functionality can used with the specified type.. The get/set version registers get and set methods separately and can be used for classes with protected member variables and get/set methods to change coordinates

Synopsis

#define BOOST_GEOMETRY_REGISTER_POINT_3D_GET_SET(Point, CoordinateType, CoordinateSystem,
                                          Get0, Get1, Get2,
                                          Set0, Set1, Set2)

Parameters

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)

Get0

Method to get the first (usually x) coordinate

Get1

Method to get the second (usually y) coordinate

Get2

Method to get the third (usually z) coordinate

Set0

Method to set the first (usually x) coordinate

Set1

Method to set the second (usually y) coordinate

Set2

Method to set the third (usually z) coordinate

Header

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


PrevUpHomeNext