I want to create a simple representation of an environment that basically just represents if at a certain position is an object or is not.
I would thus only need a big matrix filled with 1
's and 0
'. It is important to work effectively on this matrix, since I am going to have random positioned get and set operations on it, but also iterate over the whole matrix.
What would be the best solution for this? My approach would be to create a vector of vectors containing bit elements. Otherwise, would there be an advantage of using a bitmap?