| 59 | } |
| 60 | |
| 61 | m2::PointD FeatureBuilder::GetGeometryCenter(PointSeq const & poly) |
| 62 | { |
| 63 | m2::PointD ret(0.0, 0.0); |
| 64 | size_t const count = poly.size(); |
| 65 | for (size_t i = 0; i < count; ++i) |
| 66 | ret += poly[i]; |
| 67 | return ret / count; |
| 68 | } |
| 69 | |
| 70 | m2::PointD FeatureBuilder::GetKeyPoint() const |
| 71 | { |