I have the values P1,P2,P3,P4 with Screen-Points (x,y) and Longitude,Latitude. In addition to that, I have a camera (with lat,long), the height of the camera (1.6m (constant)) and the orientation of the camera (bearing, pitch, roll). I also have the horizontal view angle and the vertical view angle of the camera :)
Now i want to calculate for PX(lat,long) the estimated position on my display (if its visible).
How can I get P(?,?) for given PX(lat,long)? (purple points in the graphic) This seems to be possible because I know the angles of my camera and I have all four vertexes. But I don't know how I can solve this problem.
I need a function, based on this four vertexes, which can translate (lat,long) to (screenX, screenY).
I have a formula, which can translate (screenX, screenY) to (lat,long), but I'm not able to reverse this formula. So, if other points besides the vertexes are required, I can calculate them (but I cannot simply use this formula for every pixel in my screen... that would be a million of method calls every 100 milliseconds...)