void SetData(IListSource <T> data) { _hSet = new Dictionary <T, T>(data.Count); _mSet = new MMap <T, T>(); _iSet = new Map <T, T>(data.Select(P)); foreach (T item in data) { _hSet.Add(item, item); _mSet.Add(item, item); } }
public IListSource <DragPoint> ToShapeSpace(IListSource <DragPoint> mousePoints) { return(mousePoints.Select(dp => new DragPoint(dp, _inputTransform))); }
public IListSource<DragPoint> ToShapeSpace(IListSource<DragPoint> mousePoints) { return mousePoints.Select(dp => new DragPoint(dp, _inputTransform)); }