Trying to map a 2d array into a disk

I am not sure if your thing handles the case when A > B correctly, that is when the interval loops around. If that happens then you can have X<A and yet it can still be within <A,B>.

I have an example in the PDF where I have the logic for it

2 Likes