|
3 | 3 | // Copyright (c) 2018, 2019 Oracle and/or its affiliates. |
4 | 4 |
|
5 | 5 | // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle |
| 6 | +// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle |
6 | 7 |
|
7 | 8 | // Use, modification and distribution is subject to the Boost Software License, |
8 | 9 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
@@ -34,7 +35,7 @@ namespace boost { namespace geometry |
34 | 35 |
|
35 | 36 |
|
36 | 37 | #ifndef DOXYGEN_NO_DETAIL |
37 | | -namespace detail { namespace interpolate_point |
| 38 | +namespace detail { namespace line_interpolate |
38 | 39 | { |
39 | 40 |
|
40 | 41 | struct convert_and_push_back |
@@ -64,7 +65,7 @@ struct convert_and_assign |
64 | 65 | specified strategy |
65 | 66 | */ |
66 | 67 | template <typename Policy> |
67 | | -struct range |
| 68 | +struct interpolate_range |
68 | 69 | { |
69 | 70 | template |
70 | 71 | < |
@@ -141,20 +142,20 @@ struct range |
141 | 142 | }; |
142 | 143 |
|
143 | 144 | template <typename Policy> |
144 | | -struct segment |
| 145 | +struct interpolate_segment |
145 | 146 | { |
146 | 147 | template <typename Segment, typename Distance, typename Pointlike, typename Strategy> |
147 | 148 | static inline void apply(Segment const& segment, |
148 | 149 | Distance const& max_distance, |
149 | 150 | Pointlike & point, |
150 | 151 | Strategy const& strategy) |
151 | 152 | { |
152 | | - range<Policy>().apply(segment_view<Segment>(segment), |
153 | | - max_distance, point, strategy); |
| 153 | + interpolate_range<Policy>().apply(segment_view<Segment>(segment), |
| 154 | + max_distance, point, strategy); |
154 | 155 | } |
155 | 156 | }; |
156 | 157 |
|
157 | | -}} // namespace detail::length |
| 158 | +}} // namespace detail::line_interpolate |
158 | 159 | #endif // DOXYGEN_NO_DETAIL |
159 | 160 |
|
160 | 161 |
|
@@ -182,33 +183,33 @@ struct line_interpolate |
182 | 183 |
|
183 | 184 | template <typename Geometry, typename Pointlike> |
184 | 185 | struct line_interpolate<Geometry, Pointlike, linestring_tag, point_tag> |
185 | | - : detail::interpolate_point::range |
| 186 | + : detail::line_interpolate::interpolate_range |
186 | 187 | < |
187 | | - detail::interpolate_point::convert_and_assign |
| 188 | + detail::line_interpolate::convert_and_assign |
188 | 189 | > |
189 | 190 | {}; |
190 | 191 |
|
191 | 192 | template <typename Geometry, typename Pointlike> |
192 | 193 | struct line_interpolate<Geometry, Pointlike, linestring_tag, multi_point_tag> |
193 | | - : detail::interpolate_point::range |
| 194 | + : detail::line_interpolate::interpolate_range |
194 | 195 | < |
195 | | - detail::interpolate_point::convert_and_push_back |
| 196 | + detail::line_interpolate::convert_and_push_back |
196 | 197 | > |
197 | 198 | {}; |
198 | 199 |
|
199 | 200 | template <typename Geometry, typename Pointlike> |
200 | 201 | struct line_interpolate<Geometry, Pointlike, segment_tag, point_tag> |
201 | | - : detail::interpolate_point::segment |
| 202 | + : detail::line_interpolate::interpolate_segment |
202 | 203 | < |
203 | | - detail::interpolate_point::convert_and_assign |
| 204 | + detail::line_interpolate::convert_and_assign |
204 | 205 | > |
205 | 206 | {}; |
206 | 207 |
|
207 | 208 | template <typename Geometry, typename Pointlike> |
208 | 209 | struct line_interpolate<Geometry, Pointlike, segment_tag, multi_point_tag> |
209 | | - : detail::interpolate_point::segment |
| 210 | + : detail::line_interpolate::interpolate_segment |
210 | 211 | < |
211 | | - detail::interpolate_point::convert_and_push_back |
| 212 | + detail::line_interpolate::convert_and_push_back |
212 | 213 | > |
213 | 214 | {}; |
214 | 215 |
|
|
0 commit comments