Trying to map a 2d array into a disk

wait why do you say my case doesnt handle it? there is very specifically a handler for it??? Like that handler was the very point of my post?

Again, copypasting my handler, can you not see the part of X%M < B%M ?
X>A and (if (B>M or B<A) then (X%M < B%M or X<M) else X<B)

oh i see a bug in the handler, yeah when it wraps around the X>A needs to be on an OR instead of an AND

point is, it is possible to figure it out just fine, and therefore its possible to use modulo for wrapping bounding boxes without needing to slice them into pieces.

2 Likes