Пример #1
0
        private void NextInterpolation()
        {
            _connectionCtx = ConnectionResolver.GetNext(_connectionCtx);

            if (_connectionCtx == null)
            {
                ReachedEnd = true;
                _interpolator = null;
                return;
            }

            NextConnection = true;
            SetStartingValues();

            _interpolator = new BezierSpline.LinearInterpolator(_connectionCtx.TrackGroup.Spline, _connectionCtx.Reversed);
            _interpolator.Step(0);
        }
Пример #2
0
 private void Setup(SubTrackGroup initialTrackGroup, bool initialReverse)
 {
     NextConnection = true;
     _connectionCtx = ConnectionResolver.FirstContext(initialTrackGroup, initialReverse);
     _interpolator = new BezierSpline.LinearInterpolator(initialTrackGroup.Spline, initialReverse);
     _interpolator.Step(0);
     _currentPt = _interpolator.Value();
     SetStartingValues();
 }