| 65 | }; |
| 66 | |
| 67 | m2::PointD FindCenter(FeatureType & f) |
| 68 | { |
| 69 | ClosestPoint closest(f.GetLimitRect(FeatureType::BEST_GEOMETRY).Center()); |
| 70 | if (f.GetGeomType() == feature::GeomType::Area) |
| 71 | { |
| 72 | f.ForEachTriangle([&closest](m2::PointD const & p1, m2::PointD const & p2, m2::PointD const & p3) |
| 73 | { closest((p1 + p2 + p3) / 3); }, FeatureType::BEST_GEOMETRY); |
| 74 | } |
| 75 | else |
| 76 | { |
| 77 | f.ForEachPoint(closest, FeatureType::BEST_GEOMETRY); |
| 78 | } |
| 79 | return closest.GetBest(); |
| 80 | } |
| 81 | |
| 82 | size_t const kLangCount = localisation::GetSupportedLanguages().size(); |
| 83 |
no test coverage detected