openpixi/openpixi — pull request #21 by karolovbrat (2012-05-22 23:09:56+00:00)
Title: Grid refactoring

I did some heavy grid refactoring to get one type of grid instead of two previous grids (YeeGrid and SimpleGrid). As a result there is less code duplication.

One of the big changes was the introduction of accessors. With accessors we can easily have internally grid that has extra cells on each side. Consequently, we can access also values outside of the grid eg. grid.getEx(-1, -1). This feature speeds up some algorithms which thanks to this feature do not have to check for border conditions.