inline int32 operator()(Spline<int32>& s, int32 i)
 {
     time += (s.SegLength(i) * velocityInv);
     return time;
 }