7 #include "ClippedRouteSection.h"
9 #include "VectorMath.h"
26 , m_startVertexIndex(startVertexIndex)
32 inline int StartVertexIndex()
const {
return m_startVertexIndex; }
33 inline double LerpParam(
double s)
const {
return Math::Lerp(m_t0, m_t1, s); }
36 inline dv3 Point0(
const std::vector<dv3>& routePointsEcef)
const
38 return dv3::Lerp(routePointsEcef.at(m_startVertexIndex), routePointsEcef.at(m_startVertexIndex + 1), m_t0);
41 inline dv3 Point1(
const std::vector<dv3>& routePointsEcef)
const
43 return dv3::Lerp(routePointsEcef.at(m_startVertexIndex), routePointsEcef.at(m_startVertexIndex + 1), m_t1);
55 int m_startVertexIndex;