⚒️Thor, the Norseman⚒️ is a user on snabeltann.no. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
⚒️Thor, the Norseman⚒️ @thor

snabeltann.no/media/iSgIvRd00V

Help! I need some sort of mathematical equation that can bend this warped grid into a straight one.

A plain affine transform didn't work, because even when I corrected the shearing, the grid still got wider (in a linear fashion) near the bottom.

I basically need to map one coordinate system onto another, but I don't know the mathematical words for it.

@thor The word you are looking for is projection.

@thor I don't know if this is helpful or if it's something you've already tried but you'll need to transform in three dimensions -- the blue grid is rotated out of plane with the red grid. Once you have them rotated into the same plane you should just be able to correct the shearing.

@thor If you know the coordinates of blue dots that you want to straighten up you can just project them onto x and y plane. Next toot is equations.

@thor xb= x coordinate of blue dot, analogly for yb, xo= x coordinate of orange (transformed) dot, same fo yb.
xo=sqrt((xb)^2+(yb)^2)*cosa
yo=sqrt((xb)^2+(yb)^2*sina
a=atg(yb/xb). If you want orange dots to be equidistant add some constant to the upper equations. Hope this gives you some idea.

@thor What you want is transformation from polar to Descartes coordinate system, if you know coordinates of some point you want to transform you can express it in polar coordinate system, then using transformation equations you can project them on other coordinate system. Google "polar to rectangle coordinate system". I hope I was helpful somehow, if I understood your problem correctly.