public static IEnumerable <Point> ToData(this ICoordinateTransform converter, IEnumerable <Point> screenPoints) { ICollection <Point> pointsCollection = screenPoints as ICollection <Point>; List <Point> res; if (pointsCollection != null) { res = new List <Point>(pointsCollection.Count); } else { res = new List <Point>(); } foreach (var point in screenPoints) { res.Add(converter.ToData(point)); } return(res); }
public static Point ToData(this Point p, ICoordinateTransform converter) { return(converter.ToData(p)); }
public static Point ToData(this Point p, ICoordinateTransform converter) { return converter.ToData(p); }