Latitude and longitude are given as rotation. If you know the latitude and longitude, that's the rotation you should apply to your globe (longitude is rotationY, latitude is rotationX.)
If what you actually know are the cartesian (XYZ) coordinates of the point and you want to find the rotation (long/lat) then you use the "arc" trigonometric functions, which let you find an angle from the relationships between the point's distances in different directions from the center. Cheers /R On Jul 25, 8:09 am, mika <[email protected]> wrote: > That's exaclty what i'm searching for, anyone ? > > > > > > > > On Fri, Jan 14, 2011 at 23:10, Aneesh Chopra <[email protected]> wrote: > > I have a globe and city places as markers, converted lat/long/radius > > to Vector3D points using famous "translateGeoCoords()" function > > > Now I have implemented a search feature which gives me the city name > > with its lat/long and Vector3D point on Sphere. > > > I have to use camera.panAngle/tiltAngle to fly over the city location. > > Can anyone provide a sample code to get panAngle/tiltAngle value using > > Vecot3D data. > > > Thanks
