![]() Vector3 XYZ = new Vector3((float)x,(float)y,(float)z) Var y = N * Math.Cos(lat) * Math.Sin(lon) Var x = N * Math.Cos(lat) * Math.Cos(lon) Var N = a / Math.Sqrt(1 - e2 * Math.Pow(Math.Sin(lat), 2)) Var lon = TargetLongitude * rad - currentLongitude * rad Var lat = TargetLatitude * rad - currentLatitude * rad I am attaching the code reference that I have tried, Please check: var rad = Math.PI / 180 I have to convert the Latitude and Longitude values into the XYZ coordinates of Unity. Hi All, I am developing a Location Based AR demo application using the LightShip SDK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |