Esempio n. 1
0
        /// <summary>
        /// Given a world position vector, return the corresponding geographical Location.
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        public Location GetLocationForWorldPosition(Vector3 position)
        {
            var cameraDelta = ARLocationManager.Instance.MainCamera.transform.position - cameraPositionAtLastUpdate;

            return(Location.GetLocationForWorldPosition(gameObject.transform, cameraPositionAtLastUpdate, CurrentLocation.ToLocation(), position - cameraDelta));
        }
 /// <summary>
 /// Given a world position vector, return the corresponding geographical Location.
 /// </summary>
 /// <param name="position"></param>
 /// <returns></returns>
 public Location GetLocationForWorldPosition(Vector3 position)
 {
     return(Location.GetLocationForWorldPosition(gameObject.transform, cameraPositionAtLastUpdate, CurrentLocation.ToLocation(), position));
 }