using System; public class Test { public static void diamondSquare(int xLeft, int yBottom, int length) { Console.Out.WriteLine(xLeft +" "+yBottom + " "+length); if (length > 1) { length/=2; diamondSquare (xLeft,yBottom,length); diamondSquare (xLeft + length,yBottom,length); diamondSquare (xLeft,yBottom + length,length); diamondSquare (xLeft + length,yBottom + length,length); } } public static Vec2int[] GetPoints(Vec2int L,Vec2int R, int length) { return new Vec2int[] { new Vec2int (L.x, L.y + length), new Vec2int (L.x + length, L.y), new Vec2int (R.x, R.y - length), new Vec2int (R.x - length, R.y) }; } public struct Vec2int { public int x; public int y; public Vec2int(int x,int y){ this.x=x; this.y=y; } } public static void Main() { diamondSquare(10,15,16); } }