get.qbk 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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__get.xml]
  12. [section:get_1 get]
  13. '''<indexterm><primary>get</primary></indexterm>'''
  14. Get 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. coordinate_type<Geometry>::type get(Geometry const & geometry)``
  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 const &] [Any type fulfilling a Geometry Concept (usually a Point Concept) ] [geometry] [A model of the specified concept (usually a point) ]]
  25. ]
  26. [heading Returns]
  27. The coordinate value of specified dimension of specified geometry
  28. [heading Header]
  29. Either
  30. `#include <boost/geometry.hpp>`
  31. Or
  32. `#include <boost/geometry/core/access.hpp>`
  33. [include reference/core/get_point.qbk]
  34. [endsect]
  35. [section:get_1_with_index get (with index)]
  36. '''<indexterm><primary>get</primary></indexterm>'''
  37. get coordinate value of a Box or Segment
  38. [heading Description]
  39. 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.
  40. [heading Synopsis]
  41. ``template<std::size_t Index, std::size_t Dimension, typename Geometry>
  42. coordinate_type<Geometry>::type get(Geometry const & geometry)``
  43. [heading Parameters]
  44. [table
  45. [[Type] [Concept] [Name] [Description] ]
  46. [[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]]
  47. [[Dimension] [Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry ] [ - ] [Must be specified]]
  48. [[Geometry const &] [Any type fulfilling a Box Concept or a Segment Concept ] [geometry] [A model of the specified concept ]]
  49. ]
  50. [heading Returns]
  51. coordinate value
  52. [heading Header]
  53. Either
  54. `#include <boost/geometry.hpp>`
  55. Or
  56. `#include <boost/geometry/core/access.hpp>`
  57. [include reference/core/get_box.qbk]
  58. [endsect]
  59. [section:get_as_radian_1 get_as_radian]
  60. '''<indexterm><primary>get_as_radian</primary></indexterm>'''
  61. get coordinate value of a point, result is in Radian
  62. [heading Description]
  63. Result is in Radian, even if source coordinate system is in Degrees
  64. [heading Synopsis]
  65. ``template<std::size_t Dimension, typename Geometry>
  66. fp_coordinate_type<Geometry>::type get_as_radian(Geometry const & geometry)``
  67. [heading Parameters]
  68. [table
  69. [[Type] [Concept] [Name] [Description] ]
  70. [[Dimension] [dimension ] [ - ] [Must be specified]]
  71. [[Geometry const &] [geometry ] [geometry] [geometry to get coordinate value from ]]
  72. ]
  73. [heading Returns]
  74. coordinate value
  75. [heading Header]
  76. Either
  77. `#include <boost/geometry.hpp>`
  78. Or
  79. `#include <boost/geometry/core/radian_access.hpp>`
  80. [endsect]
  81. [section:get_as_radian_1 get_as_radian]
  82. '''<indexterm><primary>get_as_radian</primary></indexterm>'''
  83. get coordinate value of a segment or box, result is in Radian
  84. [heading Description]
  85. Result is in Radian, even if source coordinate system is in Degrees
  86. [heading Synopsis]
  87. ``template<std::size_t Index, std::size_t Dimension, typename Geometry>
  88. fp_coordinate_type<Geometry>::type get_as_radian(Geometry const & geometry)``
  89. [heading Parameters]
  90. [table
  91. [[Type] [Concept] [Name] [Description] ]
  92. [[Index] [index ] [ - ] [Must be specified]]
  93. [[Dimension] [dimension ] [ - ] [Must be specified]]
  94. [[Geometry const &] [geometry ] [geometry] [geometry to get coordinate value from ]]
  95. ]
  96. [heading Returns]
  97. coordinate value
  98. [heading Header]
  99. Either
  100. `#include <boost/geometry.hpp>`
  101. Or
  102. `#include <boost/geometry/core/radian_access.hpp>`
  103. [endsect]