envelope_multipoint.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2018, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP
  8. #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP
  9. #include <boost/geometry/core/tags.hpp>
  10. #include <boost/geometry/algorithms/detail/envelope/range.hpp>
  11. #include <boost/geometry/strategies/cartesian/envelope.hpp>
  12. namespace boost { namespace geometry
  13. {
  14. namespace strategy { namespace envelope
  15. {
  16. class cartesian_multipoint
  17. {
  18. public:
  19. template <typename MultiPoint, typename Box>
  20. static inline void apply(MultiPoint const& multipoint, Box& mbr)
  21. {
  22. geometry::detail::envelope::envelope_range::apply(multipoint, mbr, cartesian<>());
  23. }
  24. };
  25. #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  26. namespace services
  27. {
  28. template <typename CalculationType>
  29. struct default_strategy<multi_point_tag, cartesian_tag, CalculationType>
  30. {
  31. typedef strategy::envelope::cartesian_multipoint type;
  32. };
  33. } // namespace services
  34. #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  35. }} // namespace strategy::envelope
  36. }} // namespace boost::geometry
  37. #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP