Пример #1
0
 public static IWavyBorder<IEnumerable<Point>> GetWavySurface(
     IWavyBorder<Point> start,
     IWavyBorder<Point> finish,
     IConnectStrategy connectStrategy)
 {
     return start.Zip(finish, connectStrategy.Connect);
 }
Пример #2
0
 public static IWavyBorder<IEnumerable<Point>> GetWavySurface(
     IWavyBorder<Point> start,
     IWavyBorder<Point> finish,
     IWavyBorder<IConnectStrategy> connectStrategy)
 {
     return start.Zip(finish, connectStrategy, (s, f, cs) => cs.Connect(s, f));
 }