/// <summary> /// Records the current value /// </summary> /// <param name="currentPosition"></param> /// <param name="relocatedPosition"></param> public virtual void RecordCurrentValue(double currentPosition, double relocatedPosition) { SpeedDistancePoint currentPoint = GetValue(relocatedPosition); if (currentPoint != null) { PreviousData.Add(new SpeedDistancePoint(currentPosition, currentPoint.Speed)); } }
/// <summary> /// Records the current value /// </summary> /// <param name="currentSpeed"></param> public void RecordCurrentValue(double currentSpeed) { PreviousData.Add(GetValue(currentSpeed)); }