浏览代码

improve the heading

tags/2.16.1
Caven Chen 3 年前
父节点
当前提交
4719fcb337
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0
    5
      modules/math/heading.js

+ 0
- 5
modules/math/heading.js 查看文件

@@ -36,11 +36,6 @@ export default function heading(start, end) {
new Cesium.Cartesian3()
)

if (isNaN(vector.x) || isNaN(vector.y) || isNaN(vector.z)) {
return 0
}

Cesium.Cartesian3.normalize(vector, vector)
let heading = Math.atan2(vector.y, vector.x) - Cesium.Math.PI_OVER_TWO

heading = Cesium.Math.TWO_PI - Cesium.Math.zeroToTwoPi(heading)

正在加载...
取消
保存