摘要: function bounds(positions = [], expand = 0) { let minLng = 180 let minLat = 90 let maxLng = -180 let maxLat = -90 positions.forEach(item => { minLng = 阅读全文
posted @ 2023-01-26 19:36 一摩尔时光 阅读(164) 评论(0) 推荐(0)
摘要: 首先发现一个问题,这段代码会报错,原因是"DeveloperError: Expected value to be greater than or equal to0.0125, actual value was 0,不知道为什么经度不能为0 new Cesium.Cartographic.from 阅读全文
posted @ 2023-01-26 19:27 一摩尔时光 阅读(776) 评论(0) 推荐(0)
摘要: //计算三角形面积 function triangleArea(p0, p1, p2) { let v0 = Cesium.Cartesian3.subtract(p0, p1, new Cesium.Cartesian3()) let v1 = Cesium.Cartesian3.subtract 阅读全文
posted @ 2023-01-26 16:57 一摩尔时光 阅读(1497) 评论(0) 推荐(0)