Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

add_value

Adds the same value to each coordinate of a point.

Synopsis

template<typename Point>
void add_value(Point & p, coordinate_type_t< Point > const & value)

Parameters

Type

Concept

Name

Description

Point &

Any type fulfilling a Point Concept

p

point

coordinate_type_t< Point > const &

value

value to add

Header

Either

#include <boost/geometry.hpp>

Or

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


PrevUpHomeNext