瀏覽代碼

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)

Loading…
取消
儲存