distance_pythagoras_point_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__point__box.xml]
  12. [section:strategy_distance_pythagoras_point_box strategy::distance::pythagoras_point_box]
  13. '''<indexterm><primary>strategy</primary></indexterm><indexterm><primary>distance</primary></indexterm><indexterm><primary>pythagoras_point_box</primary></indexterm>'''
  14. Strategy to calculate the distance between a point and a box.
  15. [heading Synopsis]
  16. ``template<typename CalculationType>
  17. class strategy::distance::pythagoras_point_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 Point, typename Box>
  31. calculation_type< Point, Box >::type apply(Point const & point, Box const & box)``
  32. ] [applies the distance calculation using pythagoras ] [[* Point const &]: ['point]: point
  33. [* Box const &]: ['box]: 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_point_box.hpp>`
  41. [heading Notes]
  42. [note Can be used for points and 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]