【问题标题】:Convert three.js scene rotation to polar coordinates?将three.js场景旋转转换为极坐标?
【发布时间】:2016-10-06 15:39:02
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

    您只需将xyz 坐标代入以下方程:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-29
      • 2018-03-21
      • 2018-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-17
      相关资源
      最近更新 更多