how map 2d grid points (x,y) onto sphere as 3d points (x,y,z)

前端 未结 3 1642
误落风尘
误落风尘 2020-11-29 06:23

I have a set of 2d grid points (x,y) that I want to map/project onto a sphere as 3d points (x,y,z).

I realize there will be some warping towards the poles as abs(y)

3条回答
  •  一个人的身影
    2020-11-29 06:35

    I suppose that your (x,y) on the sphere are latitude, longitude.

    If so, see http://tutorial.math.lamar.edu/Classes/CalcII/SphericalCoords.aspx.

    enter image description here

    There:

    phi = 90 degree - latitude

    theta = longitude

    rho = radius of your sphere.

提交回复
热议问题