给定一个three.js场景,如何根据 THREE.PerspectiveCamera 的x,y和z position 和 rotation 属性值计算 theta 和 phi 极坐标?
THREE.PerspectiveCamera
position
rotation
theta
phi
您只需要获取 x , y 和 z 坐标并将它们插入以下等式:
x
y
z
资料来源:https://en.wikipedia.org/wiki/Spherical_coordinate_system
1 回答
您只需要获取
x
,y
和z
坐标并将它们插入以下等式:资料来源:https://en.wikipedia.org/wiki/Spherical_coordinate_system