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 a snapshot of the develop branch, built from commit 03313ef1c6.
PrevUpHomeNext

add_point

Adds a point to another.

Description

The coordinates of the second point will be added to those of the first point. The second point is not modified.

Synopsis

template<typename Point1, typename Point2>
void add_point(Point1 & p1, Point2 const & p2)

Parameters

Type

Concept

Name

Description

Point1 &

Any type fulfilling a Point Concept

p1

first point

Point2 const &

Any type fulfilling a Point Concept

p2

second point

Header

Either

#include <boost/geometry.hpp>

Or

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


PrevUpHomeNext