TGridSampler

Given a linear index into a square grid of given size, gives back the [0,1) XY coordinate of the grid cell center (assuming linear index increases first in X and then in Y).