multipoint.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2015-2018, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  4. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  5. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP
  10. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP
  11. #include <boost/geometry/core/tags.hpp>
  12. #include <boost/geometry/algorithms/dispatch/envelope.hpp>
  13. // For backward compatibility
  14. #include <boost/geometry/strategies/cartesian/envelope_multipoint.hpp>
  15. #include <boost/geometry/strategies/spherical/envelope_multipoint.hpp>
  16. namespace boost { namespace geometry
  17. {
  18. #ifndef DOXYGEN_NO_DISPATCH
  19. namespace dispatch
  20. {
  21. template <typename MultiPoint>
  22. struct envelope<MultiPoint, multi_point_tag>
  23. {
  24. template <typename Box, typename Strategy>
  25. static inline void apply(MultiPoint const& multipoint, Box& mbr, Strategy const& )
  26. {
  27. Strategy::apply(multipoint, mbr);
  28. }
  29. };
  30. } // namespace dispatch
  31. #endif // DOXYGEN_NO_DISPATCH
  32. }} // namespace boost::geometry
  33. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP