the image shows everything i have black square which is a section, and i have a red square which is a cell now if i have a cell in x,y how do i find in which section it is?
as you can see each section has 4 cells (2 in x direction 2 in y direction) also sections have the same coordinate system which is x,y (so section where blue cell is is 1,1)
ther eare 8 cells in one direction like 4 sections in the same direction, they are always the same (for x and y directions) additionally they are always power of 2 that means ther ecan be lets say 64 cells but only 2 section or 128 cells and 64 sections etc.