...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
set coordinate value (in radian) to a segment or box
Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree
template<std::size_t Index, std::size_t Dimension, typename Geometry> void set_from_radian(Geometry & geometry, typename fp_coordinate_type< Geometry >::type const & radians)
Type |
Concept |
Name |
Description |
---|---|---|---|
Index |
index |
- |
Must be specified |
Dimension |
dimension |
- |
Must be specified |
Geometry & |
geometry |
geometry |
geometry to assign coordinate to |
typename fp_coordinate_type< Geometry >::type const & |
radians |
coordinate value to assign |
Either
#include <boost/geometry.hpp>
Or
#include <boost/geometry/core/radian_access.hpp>