代码如下
var start=Cesium.Cartesian3.fromDegrees(114, 30),end=Cesium.Cartesian3.fromDegrees(120, 30),count=10;
for (var i = 1; i < count; i++) {
var cart = Cesium.Cartesian3.lerp(start, end, i / count, new Cesium.Cartesian3());
console.log(Cesium.Cartographic.fromCartesian(cart));
}
结果如下
网友评论