html+js
文章平均质量分 51
宁小宁
这个作者很懒,什么都没留下…
展开
-
判断点是否在一个区域内
var vs = [[76.025390625,21.207458730482642],[128.14453125,21.207458730482642],[128.14453125,46.73986059969267],[76.025390625,46.73986059969267],[76.025390625,21.2...原创 2020-04-22 16:13:23 · 2045 阅读 · 0 评论 -
判断两个多边形是否相交相交
// 1 判断相交 //判断两多边形线段是否相交 function isSegmentsIntersectant(segA, segB) {//线线 const abc = (segA[0][0] - segB[0][0]) * (segA[1][1] - segB[0][1]) - (segA[0][1] - segB[0][1]) * (segA[1][0]...原创 2020-04-22 15:49:00 · 4173 阅读 · 2 评论 -
输入多个经纬度,计算面积
function computeSignedArea(path) {//传入path:{[{lat:,lng:}],[{lat:,lng:}],[{lat:,lng:}]}let radius= 6371009let len = path.length;if (len < 3) return 0;let total = 0;let prev = path[len - 1];...原创 2020-04-20 11:39:04 · 2667 阅读 · 0 评论 -
three三维火焰------火箭火焰
//添加火焰function addFire() {fireGroup = new THREE.Group();var plane = new THREE.PlaneBufferGeometry(500, 2000, 1);fire1 = new THREE.Fire(plane, {textureWidth: 512,textureHeight: 512,debug: false...原创 2019-11-25 16:32:47 · 2100 阅读 · 0 评论 -
css滚动条样式
.innerbox{ overflow-y: auto; /* background-color: #f8f8f8; */ height: 440px; padding...转载 2019-06-17 10:43:28 · 79 阅读 · 0 评论