| 288 | } |
| 289 | |
| 290 | m2::PointD GetPointAtDistFromTarget(m2::PointD const & source, m2::PointD const & target, double dist) |
| 291 | { |
| 292 | double const len = DistanceOnPlain(source, target); |
| 293 | if (len < dist) |
| 294 | return source; |
| 295 | |
| 296 | double const k = (len - dist) / dist; |
| 297 | return (source + target * k) / (1.0 + k); |
| 298 | } |
| 299 | |
| 300 | std::vector<m2::PointD> PointToPolygon(m2::PointD const & center, double radiusMercator, size_t verticesCount, |
| 301 | double initAngleDeg) |