Ejemplo n.º 1
0
 /// <summary>
 /// Enumerates the bits of this column.
 /// </summary>
 /// <returns>An enumeration of the bits of this column.</returns>
 public IEnumerable <bool> GetBits()
 {
     for (int y = 0; y < 5; y++)
     {
         yield return(State[State.GetIndex(X, y, Z)]);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Enumerates the bits of this row.
 /// </summary>
 /// <returns>An enumeration of the bits of this row.</returns>
 public IEnumerable <bool> GetBits()
 {
     for (int x = 0; x < 5; x++)
     {
         yield return(State[State.GetIndex(x, Y, Z)]);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Enumerates the bits of this lane.
        /// </summary>
        /// <returns>An enumeration of the bits of this lane.</returns>
        public IEnumerable <bool> GetBits()
        {
            int w = State.Size.W;

            for (int z = 0; z < w; z++)
            {
                yield return(State[State.GetIndex(X, Y, z)]);
            }
        }