区块链技术博客
www.b2bchain.cn

Cesium抛物线方程求职学习资料

本文介绍了Cesium抛物线方程求职学习资料,有助于帮助完成毕业设计以及求职,是一篇很好的资料。

对技术面试,学习经验等有一些体会,在此分享。

调用方法
for (var j = 0; j < cities.length; j++) { var points = parabolaEquation({ pt1: center, pt2: cities[j], height: data.height, num: 100 }); var pointArr = []; for (var i = 0; i < points.length; i++) { pointArr.push(points[i][0],points[i][1],points[i][2]); } data.options.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(pointArr); viewer.entities.add(data.options); } //抛物线方程 function parabolaEquation(options, resultOut) { //方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者 var h = options.height && options.height > 5000 ? options.height : 5000;
var L = Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat) ? Math.abs(options.pt1.lon – options.pt2.lon) : Math.abs(options.pt1.lat – options.pt2.lat);
var num = options.num && options.num > 50 ? options.num : 50;
var result = [];
var dlt = L / num;
if (Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat)) {//以lon为基准
var delLat = (options.pt2.lat – options.pt1.lat) / num;
if (options.pt1.lon – options.pt2.lon > 0) {

调用方法
for (var j = 0; j < cities.length; j++) { var points = parabolaEquation({ pt1: center, pt2: cities[j], height: data.height, num: 100 }); var pointArr = []; for (var i = 0; i < points.length; i++) { pointArr.push(points[i][0],points[i][1],points[i][2]); } data.options.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(pointArr); viewer.entities.add(data.options); } //抛物线方程 function parabolaEquation(options, resultOut) { //方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者 var h = options.height && options.height > 5000 ? options.height : 5000;
var L = Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat) ? Math.abs(options.pt1.lon – options.pt2.lon) : Math.abs(options.pt1.lat – options.pt2.lat);
var num = options.num && options.num > 50 ? options.num : 50;
var result = [];
var dlt = L / num;
if (Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat)) {//以lon为基准
var delLat = (options.pt2.lat – options.pt1.lat) / num;
if (options.pt1.lon – options.pt2.lon > 0) {

调用方法
for (var j = 0; j < cities.length; j++) { var points = parabolaEquation({ pt1: center, pt2: cities[j], height: data.height, num: 100 }); var pointArr = []; for (var i = 0; i < points.length; i++) { pointArr.push(points[i][0],points[i][1],points[i][2]); } data.options.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(pointArr); viewer.entities.add(data.options); } //抛物线方程 function parabolaEquation(options, resultOut) { //方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者 var h = options.height && options.height > 5000 ? options.height : 5000;
var L = Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat) ? Math.abs(options.pt1.lon – options.pt2.lon) : Math.abs(options.pt1.lat – options.pt2.lat);
var num = options.num && options.num > 50 ? options.num : 50;
var result = [];
var dlt = L / num;
if (Math.abs(options.pt1.lon – options.pt2.lon) > Math.abs(options.pt1.lat – options.pt2.lat)) {//以lon为基准
var delLat = (options.pt2.lat – options.pt1.lat) / num;
if (options.pt1.lon – options.pt2.lon > 0) {

部分转自互联网,侵权删除联系

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » Cesium抛物线方程求职学习资料
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们