Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Auxiliary/IPointCollectionExtensions.cs @ 13757

Last change on this file since 13757 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 490 bytes
Line 
1using System.Collections.Generic;
2using System.Windows;
3
4namespace Microsoft.Research.DynamicDataDisplay
5{
6  public static class IPointCollectionExtensions
7  {
8    public static DataRect GetBounds(this IEnumerable<Point> points)
9    {
10      return BoundsHelper.GetViewportBounds(points);
11    }
12
13    public static IEnumerable<Point> Skip(this IList<Point> points, int skipCount)
14    {
15      for (int i = skipCount; i < points.Count; i++)
16      {
17        yield return points[i];
18      }
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.