I actually have written a deep-dive article on this, I have also prepared a comprehensive mathematical reference document as well (linked at the end of the article)
Here is the link to the article on dev.to: https://dev.to/ananddhruv29/from-gps-coordinates-to-screen-p...