segment.qbk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_1segment.xml]
  12. [section:model_segment model::segment]
  13. '''<indexterm><primary>model</primary></indexterm><indexterm><primary>segment</primary></indexterm>'''
  14. Class segment: small class containing two points.
  15. [heading Description]
  16. From Wikipedia: In geometry, a line segment is a part of a line that is bounded by two distinct end points, and contains every point on the line between its end points.
  17. [heading Model of]
  18. [link geometry.reference.concepts.concept_segment Segment Concept]
  19. [heading Synopsis]
  20. ``template<typename Point>
  21. class model::segment
  22. : public std::pair< Point, Point >
  23. {
  24. // ...
  25. };
  26. ``
  27. [heading Template parameter(s)]
  28. [table
  29. [[Parameter] [Description]]
  30. [[typename Point] []]
  31. ]
  32. [heading Constructor(s)]
  33. [table
  34. [[Function] [Description] [Parameters] ]
  35. [[``segment()``
  36. ] [Default constructor, no initialization. ] [
  37. ]]
  38. [[``segment(Point const & p1, Point const & p2)``
  39. ] [Constructor taking the first and the second point. ] [[* Point const &]: ['p1]:
  40. [* Point const &]: ['p2]:
  41. ]]
  42. ]
  43. [heading Header]
  44. Either
  45. `#include <boost/geometry/geometries/geometries.hpp>`
  46. Or
  47. `#include <boost/geometry/geometries/segment.hpp>`
  48. [include reference/geometries/segment.qbk]
  49. [endsect]