I'm trying to convert a bounding box in a spherical map (equiangular image as a result of Libnoise / c ++) into a planar projection, but I can not find the right algorithm for it, and I'm not good at projections.
This is the library I use for reference.
And this is the diagram of what I'm trying to do with the resulting image.
I know that I will have some distortions and that the resulting image will be "narrower" as I get closer to the poles. Therefore, I plan to compute such offsets with respect to the bounding box to cover the desired area.
That way, I could edit the map with flat XY coordinates without spherical distortion.