public void Shift(IPointsRepository repository,
                          IPoint3D shiftByPoint3D)
        {
            List <IPoint3D> shiftedPoints = repository.All()
                                            .Select(point3D => m_Calculator.Calculate(point3D,
                                                                                      shiftByPoint3D))
                                            .ToList();

            repository.Clear();
            repository.AddRange(shiftedPoints);
        }
Exemplo n.º 2
0
 public void AddRange(IEnumerable <IPoint3D> points)
 {
     m_Repository.AddRange(points);
 }