Beispiel #1
0
 public void MoveAlongVector(IVector v, double partOfVector = 1)
 {
     if (v.GetLength() != 2)
     {
         throw new ArgumentException("Vector should have 2 numbers");
     }
     foreach (Point2D p in points)
     {
         p.MoveByVector(v, partOfVector);
     }
 }