set

# set: set geometries

std::size_t Dimension Dimension
typename Geometry
void void boost::geometry::set (Geometry &geometry, typename coordinate_type< Geometry >::type const &value) set Geometry & geometry typename coordinate_type< Geometry >::type const & value

Set coordinate value of a geometry (usually a point)

The free functions [*get] and [*set] are two of the most important functions of Boost.Geometry, both within the library, as also for the library user. With these two functions you normally get and set coordinate values from and for a point, box, segment or sphere. Dimension

Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry

Geometry

Any type fulfilling a Geometry Concept (usually a Point Concept)

geometry

geometry to assign coordinate to

geometry

A model of the specified concept (usually a point)

value

The coordinate value to set

[include reference/core/set_point.qbk]
std::size_t Index Index
std::size_t Dimension Dimension
typename Geometry
void void boost::geometry::set (Geometry &geometry, typename coordinate_type< Geometry >::type const &value) set Geometry & geometry typename coordinate_type< Geometry >::type const & value

set coordinate value of a Box / Segment

The free functions [*get] and [*set] are two of the most important functions of Boost.Geometry, both within the library, as also for the library user. With these two functions you normally get and set coordinate values from and for a point, box, segment or sphere. Index

Index, this template parameter is required. For a Box: either min_corner or max_corner. For a Segment: either 0 or 1 for first or last point.

Dimension

Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry

Geometry

Any type fulfilling a Box Concept or a Segment Concept

geometry

geometry to assign coordinate to

geometry

A model of the specified concept

value

The coordinate value to set

with index [include reference/core/set_box.qbk]
std::size_t Dimension Dimension
typename Geometry
void void boost::geometry::set_from_radian (Geometry &geometry, typename fp_coordinate_type< Geometry >::type const &radians) set_from_radian Geometry & geometry typename fp_coordinate_type< Geometry >::type const & radians

set coordinate value (in radian) to a point

Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree

Dimension

dimension

Geometry

geometry

geometry

geometry to assign coordinate to

radians

coordinate value to assign

Only applicable to coordinate systems templatized by units, e.g. spherical or geographic coordinate systems