Once you have the relative distance and bearing that you can determine from two points in the same coordinate space using the algorithms found on this page , figuring out where the known coordinate refers to the known point of view is basically a perspective projection , math is described on this Wikipedia article . The rotation of the camera is set by the compass, and the tilt by the accelerometer (position, of course, GPS).
I am trying to find a better document - there are a few additional things to consider - for example, camera settings, etc., but this is a good starting point.
If this is too important (for example, if itβs not convenient for you with rotation matrices), we can break it down to a simple trigger.
source share