blob: 6aa4251e5984c12768480ccc56cff3879bc8fe20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "helicopter_router.hpp"
#include "route.hpp"
#include "../base/timer.hpp"
#include "../base/macros.hpp"
namespace routing
{
void HelicopterRouter::SetFinalPoint(m2::PointD const & finalPt)
{
m_finalPt = finalPt;
}
void HelicopterRouter::CalculateRoute(m2::PointD const & startingPt, ReadyCallback const & callback)
{
m2::PointD points[] = {startingPt, m_finalPt};
Route route(GetName(), vector<m2::PointD>(&points[0], &points[0] + ARRAY_SIZE(points)), my::FormatCurrentTime());
callback(route);
}
}
|