point.qbk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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/classboost_1_1geometry_1_1model_1_1point.xml]
  12. [section:model_point model::point]
  13. '''<indexterm><primary>model</primary></indexterm><indexterm><primary>point</primary></indexterm>'''
  14. Basic point class, having coordinates defined in a neutral way.
  15. [heading Description]
  16. Defines a neutral point class, fulfilling the Point Concept. Library users can use this point class, or use their own point classes. This point class is used in most of the samples and tests of Boost.Geometry This point class is used occasionally within the library, where a temporary point class is necessary.
  17. [heading Model of]
  18. [link geometry.reference.concepts.concept_point Point Concept]
  19. [heading Synopsis]
  20. ``template<typename CoordinateType, std::size_t DimensionCount, typename CoordinateSystem>
  21. class model::point
  22. {
  23. // ...
  24. };
  25. ``
  26. [heading Template parameter(s)]
  27. [table
  28. [[Parameter] [Description]]
  29. [[typename CoordinateType] [numerical type (int, double, ttmath, ...) ]]
  30. [[std::size_t DimensionCount] [number of coordinates, usually 2 or 3 ]]
  31. [[typename CoordinateSystem] [coordinate system, for example cs::cartesian]]
  32. ]
  33. [heading Constructor(s)]
  34. [table
  35. [[Function] [Description] [Parameters] ]
  36. [[``point()``
  37. ] [Default constructor, no initialization. ] [
  38. ]]
  39. [[``point(CoordinateType const & v0)``
  40. ] [Constructor to set one value. ] [[* CoordinateType const &]: ['v0]:
  41. ]]
  42. [[``point(CoordinateType const & v0, CoordinateType const & v1)``
  43. ] [Constructor to set two values. ] [[* CoordinateType const &]: ['v0]:
  44. [* CoordinateType const &]: ['v1]:
  45. ]]
  46. [[``point(CoordinateType const & v0, CoordinateType const & v1, CoordinateType const & v2)``
  47. ] [Constructor to set three values. ] [[* CoordinateType const &]: ['v0]:
  48. [* CoordinateType const &]: ['v1]:
  49. [* CoordinateType const &]: ['v2]:
  50. ]]
  51. ]
  52. [heading Member Function(s)]
  53. [table
  54. [[Function] [Description] [Parameters] [Returns]]
  55. [[``template<std::size_t K>
  56. CoordinateType const & get()``
  57. ] [Get a coordinate. ] [
  58. ][
  59. the coordinate
  60. ]
  61. ]
  62. [[``template<std::size_t K>
  63. void set(CoordinateType const & value)``
  64. ] [Set a coordinate. ] [[* CoordinateType const &]: ['value]: value to set
  65. ][
  66. ]
  67. ]
  68. ]
  69. [heading Header]
  70. Either
  71. `#include <boost/geometry/geometries/geometries.hpp>`
  72. Or
  73. `#include <boost/geometry/geometries/point.hpp>`
  74. [include reference/geometries/point.qbk]
  75. [endsect]