https://snabeltann.no/media/iSgIvRd00VoRw9tMzw8
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 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.
@thor The word you are looking for is projection.