public static IWavyBorder<IEnumerable<Point>> GetWavySurface( IWavyBorder<Point> start, IWavyBorder<Point> finish, IConnectStrategy connectStrategy) { return start.Zip(finish, connectStrategy.Connect); }
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)); }