All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteSelectionHelper.h
1 // Copyright eeGeo Ltd 2016, All Rights Reserved
2 
3 #pragma once
4 
5 #include <vector>
6 #include "Route.h"
7 
8 namespace Eegeo
9 {
10  namespace Routes
11  {
13  {
14  public:
16  int routeIndex;
17  float distance;
18  float paramAtClosestPoint;
19  int pointIndexBeforeClosestPoint;
20  RouteHitTestResult(int index, float dist, float param, float pointIndex)
21  {
22  routeIndex = index;
23  distance = dist;
24  paramAtClosestPoint = param;
25  pointIndexBeforeClosestPoint = pointIndex;
26  }
27  };
28  static RouteHitTestResult GetRouteClosestToPoint(const std::vector<const Eegeo::Routes::Route*>& routes, Eegeo::dv3& ecefPoint);
29  };
30  }
31 }
32