Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using System.Windows;
|
---|
3 |
|
---|
4 | namespace 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.