Esempio n. 1
0
        public static int[] ZLines(int endentry)
        {
            int[] zlines = new int[GridZRange + 1];

            for (int z = 0; z < GridZRange; z++)
            {
                float xp, zp;
                int   id = GridId.IdFromComponents(0, z);
                GridId.XZ(id, out xp, out zp, false);
                zlines[z] = (int)zp;
            }

            zlines[GridZRange] = endentry;

            return(zlines);
        }
Esempio n. 2
0
        public static int[] XLines(int endentry)            // fill in the LY values, plus an end stop one
        {
            int[] xlines = new int[GridXRange + 1];

            for (int x = 0; x < GridXRange; x++)
            {
                float xp, zp;
                int   id = GridId.IdFromComponents(x, 0);
                GridId.XZ(id, out xp, out zp, false);
                xlines[x] = (int)xp;
            }

            xlines[GridXRange] = endentry;

            return(xlines);
        }