3D coordinates on a sphere to Latitude and Longitude

后端 未结 7 717
慢半拍i
慢半拍i 2020-11-30 19:25

I\'ve got the following information:

There exists a sphere with origin (0,0,0) and radius R. After doing a ray-sphere intersection I know a point (XYZ) in 3D space t

相关标签:
7条回答
  • 2020-11-30 20:20

    This is back-of-envelope work but:

    Lat = arctan(z/(sqrt(x^2+y^2)))
    
    Long = arccos(sqrt(x^2+y^2)/x)
    
    0 讨论(0)
提交回复
热议问题