All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PointOnPath.h
1 #pragma once
2 
3 #include "Geometry.h"
4 #include "LatLongAltitude.h"
5 
6 namespace Eegeo
7 {
8  namespace Geometry
9  {
10  namespace Paths
11  {
13  {
14  public:
15  PointOnPath(const Eegeo::Space::LatLong& resultPoint, const Eegeo::Space::LatLong& inputPoint, double distanceFromInputPoint, double fractionAlongPath, int indexOfPathSegmentStartVertex, int indexOfPathSegmentEndVertex)
16  : m_resultPoint(resultPoint)
17  , m_inputPoint(inputPoint)
18  , m_distanceFromInputPoint(distanceFromInputPoint)
19  , m_fractionAlongPath(fractionAlongPath)
20  , m_indexOfPathSegmentStartVertex(indexOfPathSegmentStartVertex)
21  , m_indexOfPathSegmentEndVertex(indexOfPathSegmentEndVertex)
22 
23  {
24  }
25 
26  const Eegeo::Space::LatLong& GetResultPoint() const { return m_resultPoint; }
27  const Eegeo::Space::LatLong& GetInputPoint() const { return m_inputPoint; }
28  double GetDistanceFromInputPoint() const { return m_distanceFromInputPoint; }
29  double GetFractionAlongPath() const { return m_fractionAlongPath; }
30  int GetIndexOfPathSegmentStartVertex() const { return m_indexOfPathSegmentStartVertex; }
31  int GetIndexOfPathSegmentEndVertex() const { return m_indexOfPathSegmentEndVertex; }
32 
33 
34  private:
35  Eegeo::Space::LatLong m_resultPoint;
36  Eegeo::Space::LatLong m_inputPoint;
37  double m_distanceFromInputPoint;
38  double m_fractionAlongPath;
39  int m_indexOfPathSegmentStartVertex;
40  int m_indexOfPathSegmentEndVertex;
41 
42  };
43 
44  }
45  }
46 }