A function to determine the offset of a given neighbor direction in raster ordering.
A function to determine the offset of a given neighbor direction in raster ordering.
Given a SpatialComponent, we generate an offset pair that can be added to the (row, column) of a SpatialKey to generate the SpatialKey of the desired neighbor.