set.qbk 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
  6. Use, modification and distribution is subject to the Boost Software License,
  7. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. http://www.boost.org/LICENSE_1_0.txt)
  9. =============================================================================/]
  10. [/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
  11. [/ Generated from doxy/doxygen_output/xml/group__set.xml]
  12. [section:set_2 set]
  13. '''<indexterm><primary>set</primary></indexterm>'''
  14. Set coordinate value of a geometry (usually a point)
  15. [heading Description]
  16. 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.
  17. [heading Synopsis]
  18. ``template<std::size_t Dimension, typename Geometry>
  19. void set(Geometry & geometry, typename coordinate_type< Geometry >::type const & value)``
  20. [heading Parameters]
  21. [table
  22. [[Type] [Concept] [Name] [Description] ]
  23. [[Dimension] [Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry ] [ - ] [Must be specified]]
  24. [[Geometry &] [Any type fulfilling a Geometry Concept (usually a Point Concept) ] [geometry] [A model of the specified concept (usually a point) ]]
  25. [[typename coordinate_type< Geometry >::type const &] [] [value] [The coordinate value to set]]
  26. ]
  27. [heading Header]
  28. Either
  29. `#include <boost/geometry.hpp>`
  30. Or
  31. `#include <boost/geometry/core/access.hpp>`
  32. [include reference/core/set_point.qbk]
  33. [endsect]
  34. [section:set_2_with_index set (with index)]
  35. '''<indexterm><primary>set</primary></indexterm>'''
  36. set coordinate value of a Box / Segment
  37. [heading Description]
  38. 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.
  39. [heading Synopsis]
  40. ``template<std::size_t Index, std::size_t Dimension, typename Geometry>
  41. void set(Geometry & geometry, typename coordinate_type< Geometry >::type const & value)``
  42. [heading Parameters]
  43. [table
  44. [[Type] [Concept] [Name] [Description] ]
  45. [[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. ] [ - ] [Must be specified]]
  46. [[Dimension] [Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry ] [ - ] [Must be specified]]
  47. [[Geometry &] [Any type fulfilling a Box Concept or a Segment Concept ] [geometry] [A model of the specified concept ]]
  48. [[typename coordinate_type< Geometry >::type const &] [] [value] [The coordinate value to set]]
  49. ]
  50. [heading Header]
  51. Either
  52. `#include <boost/geometry.hpp>`
  53. Or
  54. `#include <boost/geometry/core/access.hpp>`
  55. [include reference/core/set_box.qbk]
  56. [endsect]
  57. [section:set_from_radian_2 set_from_radian]
  58. '''<indexterm><primary>set_from_radian</primary></indexterm>'''
  59. set coordinate value (in radian) to a point
  60. [heading Description]
  61. Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree
  62. [heading Synopsis]
  63. ``template<std::size_t Dimension, typename Geometry>
  64. void set_from_radian(Geometry & geometry, typename fp_coordinate_type< Geometry >::type const & radians)``
  65. [heading Parameters]
  66. [table
  67. [[Type] [Concept] [Name] [Description] ]
  68. [[Dimension] [dimension ] [ - ] [Must be specified]]
  69. [[Geometry &] [geometry ] [geometry] [geometry to assign coordinate to ]]
  70. [[typename fp_coordinate_type< Geometry >::type const &] [] [radians] [coordinate value to assign ]]
  71. ]
  72. [heading Header]
  73. Either
  74. `#include <boost/geometry.hpp>`
  75. Or
  76. `#include <boost/geometry/core/radian_access.hpp>`
  77. [endsect]
  78. [section:set_from_radian_2 set_from_radian]
  79. '''<indexterm><primary>set_from_radian</primary></indexterm>'''
  80. set coordinate value (in radian) to a segment or box
  81. [heading Description]
  82. Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree
  83. [heading Synopsis]
  84. ``template<std::size_t Index, std::size_t Dimension, typename Geometry>
  85. void set_from_radian(Geometry & geometry, typename fp_coordinate_type< Geometry >::type const & radians)``
  86. [heading Parameters]
  87. [table
  88. [[Type] [Concept] [Name] [Description] ]
  89. [[Index] [index ] [ - ] [Must be specified]]
  90. [[Dimension] [dimension ] [ - ] [Must be specified]]
  91. [[Geometry &] [geometry ] [geometry] [geometry to assign coordinate to ]]
  92. [[typename fp_coordinate_type< Geometry >::type const &] [] [radians] [coordinate value to assign ]]
  93. ]
  94. [heading Header]
  95. Either
  96. `#include <boost/geometry.hpp>`
  97. Or
  98. `#include <boost/geometry/core/radian_access.hpp>`
  99. [endsect]