Cesium 计算两点之间的距离

var satrt = Cesium.Cartographic.fromDegrees(x,y,z)

var end = Cesium.Cartographic.fromDegrees(x,y,z)

var geodesic = new Cesium.EllipsoidGeodesic();

geodesic.setEndPoints(satrt, end);

var distance = geodesic.surfaceDistance return {distance,geodesic}

console.log(distance)   

posted on 2020-09-25 09:19  弘道法天  阅读(1884)  评论(0编辑  收藏  举报

导航