标签: math three.js polar-coordinates cartesian-coordinates
给定一个three.js场景,如何根据a的x,y和z theta和phi属性值计算position和rotation极坐标THREE.PerspectiveCamera?
theta
phi
position
rotation
THREE.PerspectiveCamera
答案 0 :(得分:3)
您只需要使用x,y和z坐标并将其插入以下公式:
x
y
z
来源:https://en.wikipedia.org/wiki/Spherical_coordinate_system