Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-08-23 18:17:58 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:22:20 +0300
commit2046a47d565e7f3c9a1a18eaec7d969f9bf20789 (patch)
tree504aa14d86e0296c78bb377e1d0d3badabd991ef /indexer/feature_impl.hpp
parent56dda155545598d52fd21d406015468f376c3f88 (diff)
Factor out FeatureBuilder to the separate module in 'generator' lib.
Diffstat (limited to 'indexer/feature_impl.hpp')
-rw-r--r--indexer/feature_impl.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp
index 75c41bf034..ff5d781c7a 100644
--- a/indexer/feature_impl.hpp
+++ b/indexer/feature_impl.hpp
@@ -39,4 +39,11 @@ namespace feature
str += arrChar[ind];
return str;
}
+
+ template <class TCont>
+ void CalcRect(TCont const & points, m2::RectD & rect)
+ {
+ for (size_t i = 0; i < points.size(); ++i)
+ rect.Add(points[i]);
+ }
}