]>
Commit | Line | Data |
---|---|---|
92f5a8d4 TL |
1 | // Boost.Geometry |
2 | ||
20effc67 | 3 | // Copyright (c) 2019-2020, Oracle and/or its affiliates. |
92f5a8d4 TL |
4 | |
5 | // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle | |
6 | ||
7 | // Licensed under the Boost Software License version 1.0. | |
8 | // http://www.boost.org/users/license.html | |
9 | ||
10 | #ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP | |
11 | #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP | |
12 | ||
13 | ||
14 | #include <boost/geometry/core/tags.hpp> | |
15 | ||
20effc67 | 16 | #include <boost/geometry/strategy/cartesian/area.hpp> |
92f5a8d4 | 17 | #include <boost/geometry/strategies/point_order.hpp> |
92f5a8d4 TL |
18 | |
19 | ||
20 | namespace boost { namespace geometry | |
21 | { | |
22 | ||
23 | namespace strategy { namespace point_order | |
24 | { | |
25 | ||
26 | template <typename CalculationType = void> | |
27 | struct cartesian | |
28 | : strategy::area::cartesian<CalculationType> | |
29 | { | |
30 | typedef area_tag version_tag; | |
20effc67 TL |
31 | |
32 | // TEMP | |
33 | static strategy::area::cartesian<CalculationType> get_area_strategy() | |
34 | { | |
35 | return strategy::area::cartesian<CalculationType>(); | |
36 | } | |
92f5a8d4 TL |
37 | }; |
38 | ||
39 | namespace services | |
40 | { | |
41 | ||
42 | template <> | |
43 | struct default_strategy<cartesian_tag> | |
44 | { | |
45 | typedef cartesian<> type; | |
46 | }; | |
47 | ||
48 | } // namespace services | |
49 | ||
50 | }} // namespace strategy::point_order | |
51 | ||
52 | }} // namespace boost::geometry | |
53 | ||
54 | #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP |