将three.js场景旋转转换为极坐标?

时间:2016-06-06 21:52:56

标签: math three.js polar-coordinates cartesian-coordinates

给定一个three.js场景,如何根据a的x,y和z thetaphi属性值计算positionrotation极坐标THREE.PerspectiveCamera

1 个答案:

答案 0 :(得分:3)

您只需要使用xyz坐标并将其插入以下公式:

enter image description here

enter image description here

enter image description here

来源:https://en.wikipedia.org/wiki/Spherical_coordinate_system