referring_segment.qbk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_1referring__segment.xml]
  12. [section:model_referring_segment model::referring_segment]
  13. '''<indexterm><primary>model</primary></indexterm><indexterm><primary>referring_segment</primary></indexterm>'''
  14. Class segment: small class containing two (templatized) point references.
  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 Synopsis]
  18. ``template<typename ConstOrNonConstPoint>
  19. class model::referring_segment
  20. {
  21. // ...
  22. };
  23. ``
  24. [heading Template parameter(s)]
  25. [table
  26. [[Parameter] [Description]]
  27. [[typename ConstOrNonConstPoint] [point type of the segment, maybe a point or a const point ]]
  28. ]
  29. [heading Constructor(s)]
  30. [table
  31. [[Function] [Description] [Parameters] ]
  32. [[``referring_segment(point_type & p1, point_type & p2)``
  33. ] [Constructor taking the first and the second point. ] [[* point_type &]: ['p1]:
  34. [* point_type &]: ['p2]:
  35. ]]
  36. ]
  37. [heading Header]
  38. Either
  39. `#include <boost/geometry/geometries/geometries.hpp>`
  40. Or
  41. `#include <boost/geometry/geometries/segment.hpp>`
  42. [endsect]