1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2018, Oracle and/or its affiliates.
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP
12 #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP
14 #include <boost/geometry/core/tags.hpp>
16 #include <boost/geometry/algorithms/detail/envelope/range.hpp>
18 #include <boost/geometry/strategies/cartesian/envelope.hpp>
21 namespace boost { namespace geometry
24 namespace strategy { namespace envelope
27 class cartesian_multipoint
30 template <typename MultiPoint, typename Box>
31 static inline void apply(MultiPoint const& multipoint, Box& mbr)
33 geometry::detail::envelope::envelope_range::apply(multipoint, mbr, cartesian<>());
38 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
43 template <typename CalculationType>
44 struct default_strategy<multi_point_tag, cartesian_tag, CalculationType>
46 typedef strategy::envelope::cartesian_multipoint type;
50 } // namespace services
52 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
55 }} // namespace strategy::envelope
57 }} // namespace boost::geometry
59 #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_MULTIPOINT_HPP