point.hpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2015, 2016, 2017, 2018.
  6. // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  8. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  9. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  10. // Distributed under the Boost Software License, Version 1.0.
  11. // (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
  14. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
  15. #include <boost/geometry/core/tags.hpp>
  16. #include <boost/geometry/algorithms/dispatch/envelope.hpp>
  17. // For backward compatibility
  18. #include <boost/geometry/strategies/cartesian/envelope_point.hpp>
  19. #include <boost/geometry/strategies/spherical/envelope_point.hpp>
  20. namespace boost { namespace geometry
  21. {
  22. #ifndef DOXYGEN_NO_DETAIL
  23. namespace detail { namespace envelope
  24. {
  25. struct envelope_point
  26. {
  27. template <typename Point, typename Box, typename Strategy>
  28. static inline void apply(Point const& point, Box& mbr, Strategy const& )
  29. {
  30. Strategy::apply(point, mbr);
  31. }
  32. };
  33. }} // namespace detail::envelope
  34. #endif // DOXYGEN_NO_DETAIL
  35. #ifndef DOXYGEN_NO_DISPATCH
  36. namespace dispatch
  37. {
  38. template <typename Point>
  39. struct envelope<Point, point_tag>
  40. : detail::envelope::envelope_point
  41. {};
  42. } // namespace dispatch
  43. #endif // DOXYGEN_NO_DISPATCH
  44. }} // namespace boost::geometry
  45. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP