I wanted C# code to do this recently, taking a globe bitmap and spherically projecting it and rotating it. I used it as a test for GPT. I asked it for the code. I pasted it into my app and it worked perfectly first time.
Definitely. I'd actually just read that link before I asked GPT to write the code. I wondered how much of that page, and the various StackOverflow questions on this topic it was combining to create its code.
For a more old-school approach, see "Sphere Mapping" by Frédéric Goset.
http://fredericgoset.ovh/informatique/oldschool/en/spheremap...
(This may well be why the LLM "knows" about this. May be interesting to compare approaches and variable names. – It's also linked in the article.)
https://www.youtube.com/watch?v=_aTh5_FTasg