コード例 #1
0
ファイル: RunStatistics.cs プロジェクト: topeju/GpxRunParser
 public void SetStartPoint(GpxTrackPoint point)
 {
     _latestPointOffset   = -1;
     _earliestPointOffset = -1;
     _bufferCount         = 0;
     if (_lastPoint != null)
     {
         Pauses.Add(new PauseInfo {
             PauseStart = _lastPoint,
             PauseEnd   = point
         });
     }
     point.Slope = 0.0D;
     point.Pace  = _lastPace;
     point.Speed = 3600.0 / _lastPace.TotalSeconds;
     _lastPoint  = point;
     RecordRoutePoint(point);
 }
コード例 #2
0
 public void AddPause(string description, DateTime startedAt, DateTime endedAt)
 {
     Pauses = Pauses ?? new List <Pause>();
     Pauses.Add(Pause.New(description, startedAt, endedAt));
 }