Struct for storing the state that persists across multiple calls generating the multidimensional grid.