within.qbk 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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__within.xml]
  12. [section:within_2 within]
  13. '''<indexterm><primary>within</primary></indexterm>'''
  14. Checks if the first geometry is completely inside the second geometry.
  15. [heading Description]
  16. The free function within checks if the first geometry is completely inside the second geometry.
  17. [heading Synopsis]
  18. ``template<typename Geometry1, typename Geometry2>
  19. bool within(Geometry1 const & geometry1, Geometry2 const & geometry2)``
  20. [heading Parameters]
  21. [table
  22. [[Type] [Concept] [Name] [Description] ]
  23. [[Geometry1 const &] [Any type fulfilling a Geometry Concept ] [geometry1] [A model of the specified concept which might be within the second geometry ]]
  24. [[Geometry2 const &] [Any type fulfilling a Geometry Concept ] [geometry2] [A model of the specified concept which might contain the first geometry ]]
  25. ]
  26. [heading Returns]
  27. true if geometry1 is completely contained within geometry2, else false
  28. [heading Header]
  29. Either
  30. `#include <boost/geometry.hpp>`
  31. Or
  32. `#include <boost/geometry/algorithms/within.hpp>`
  33. [include reference/algorithms/within.qbk]
  34. [heading Example]
  35. [within]
  36. [within_output]
  37. [endsect]
  38. [section:within_3_with_strategy within (with strategy)]
  39. '''<indexterm><primary>within</primary></indexterm>'''
  40. Checks if the first geometry is completely inside the second geometry using the specified strategy.
  41. [heading Description]
  42. The free function within checks if the first geometry is completely inside the second geometry, using the specified strategy. Reasons to specify a strategy include: use another coordinate system for calculations; construct the strategy beforehand (e.g. with the radius of the Earth); select a strategy when there are more than one available for a calculation.
  43. [heading Synopsis]
  44. ``template<typename Geometry1, typename Geometry2, typename Strategy>
  45. bool within(Geometry1 const & geometry1, Geometry2 const & geometry2, Strategy const & strategy)``
  46. [heading Parameters]
  47. [table
  48. [[Type] [Concept] [Name] [Description] ]
  49. [[Geometry1 const &] [Any type fulfilling a Geometry Concept ] [geometry1] [A model of the specified concept which might be within the second geometry ]]
  50. [[Geometry2 const &] [Any type fulfilling a Geometry Concept ] [geometry2] [A model of the specified concept which might contain the first geometry ]]
  51. [[Strategy const &] [] [strategy] [strategy to be used ]]
  52. ]
  53. [heading Returns]
  54. true if geometry1 is completely contained within geometry2, else false
  55. [heading Header]
  56. Either
  57. `#include <boost/geometry.hpp>`
  58. Or
  59. `#include <boost/geometry/algorithms/within.hpp>`
  60. [include reference/algorithms/within.qbk]
  61. [heading Available Strategies]
  62. * [link geometry.reference.strategies.strategy_within_winding Winding (coordinate system agnostic)]
  63. * [link geometry.reference.strategies.strategy_within_franklin Franklin (cartesian)]
  64. * [link geometry.reference.strategies.strategy_within_crossings_multiply Crossings Multiply (cartesian)]
  65. [heading Example]
  66. [within_strategy]
  67. [within_strategy_output]
  68. [endsect]