distance_pythagoras_box_box.qbk 2.2 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_1strategy_1_1distance_1_1pythagoras__box__box.xml]
  12. [section:strategy_distance_pythagoras_box_box strategy::distance::pythagoras_box_box]
  13. '''<indexterm><primary>strategy</primary></indexterm><indexterm><primary>distance</primary></indexterm><indexterm><primary>pythagoras_box_box</primary></indexterm>'''
  14. Strategy to calculate the distance between two boxes.
  15. [heading Synopsis]
  16. ``template<typename CalculationType>
  17. class strategy::distance::pythagoras_box_box
  18. {
  19. // ...
  20. };
  21. ``
  22. [heading Template parameter(s)]
  23. [table
  24. [[Parameter] [Default] [Description]]
  25. [[typename CalculationType] [void] [numeric type for calculation (e.g. high precision); if [*void] then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point]]
  26. ]
  27. [heading Member Function(s)]
  28. [table
  29. [[Function] [Description] [Parameters] [Returns]]
  30. [[``template<typename Box1, typename Box2>
  31. calculation_type< Box1, Box2 >::type apply(Box1 const & box1, Box2 const & box2)``
  32. ] [applies the distance calculation using pythagoras_box_box] [[* Box1 const &]: ['box1]: first box
  33. [* Box2 const &]: ['box2]: second box
  34. ][
  35. the calculated distance (including taking the square root)
  36. ]
  37. ]
  38. ]
  39. [heading Header]
  40. `#include <boost/geometry/strategies/cartesian/distance_pythagoras_box_box.hpp>`
  41. [heading Notes]
  42. [note Can be used for boxes with two, three or more dimensions]
  43. [heading See also]
  44. [link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)]
  45. [endsect]