pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      1. <tfoot id='pwNG3'></tfoot>
        <legend id='pwNG3'><style id='pwNG3'><dir id='pwNG3'><q id='pwNG3'></q></dir></style></legend>
        <i id='pwNG3'><tr id='pwNG3'><dt id='pwNG3'><q id='pwNG3'><span id='pwNG3'><b id='pwNG3'><form id='pwNG3'><ins id='pwNG3'></ins><ul id='pwNG3'></ul><sub id='pwNG3'></sub></form><legend id='pwNG3'></legend><bdo id='pwNG3'><pre id='pwNG3'><center id='pwNG3'></center></pre></bdo></b><th id='pwNG3'></th></span></q></dt></tr></i><div class="wue8aco" id='pwNG3'><tfoot id='pwNG3'></tfoot><dl id='pwNG3'><fieldset id='pwNG3'></fieldset></dl></div>
        • <bdo id='pwNG3'></bdo><ul id='pwNG3'></ul>

        <small id='pwNG3'></small><noframes id='pwNG3'>

        谷歌地圖兩個圓的交點(diǎn)

        Google Maps Two Circles Intersection Points(谷歌地圖兩個圓的交點(diǎn))
        <legend id='c2LjS'><style id='c2LjS'><dir id='c2LjS'><q id='c2LjS'></q></dir></style></legend>

        <small id='c2LjS'></small><noframes id='c2LjS'>

          <tbody id='c2LjS'></tbody>

            <bdo id='c2LjS'></bdo><ul id='c2LjS'></ul>

                <i id='c2LjS'><tr id='c2LjS'><dt id='c2LjS'><q id='c2LjS'><span id='c2LjS'><b id='c2LjS'><form id='c2LjS'><ins id='c2LjS'></ins><ul id='c2LjS'></ul><sub id='c2LjS'></sub></form><legend id='c2LjS'></legend><bdo id='c2LjS'><pre id='c2LjS'><center id='c2LjS'></center></pre></bdo></b><th id='c2LjS'></th></span></q></dt></tr></i><div class="oymeios" id='c2LjS'><tfoot id='c2LjS'></tfoot><dl id='c2LjS'><fieldset id='c2LjS'></fieldset></dl></div>
              • <tfoot id='c2LjS'></tfoot>

                • 本文介紹了谷歌地圖兩個圓的交點(diǎn)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  有沒有一種簡單的方法來獲取兩個

                  var R = 6371;//公里var dLat = (lat2-lat1).toRad();var dLon = (lon2-lon1).toRad();var lat1 = lat1.toRad();var lat2 = lat2.toRad();var a = Math.sin(dLat/2) * Math.sin(dLat/2) +Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2);var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));

                  和我們的

                  AC = c/2

                  如果給定的圓半徑Rd是公里,那么

                  AB = Rd/R = Rd/6371

                  現(xiàn)在我們可以找到角度了

                  A = arccos(tg(AC) * ctg(AB))

                  起始方位(AF方向):

                  var y = Math.sin(dLon) * Math.cos(lat2);var x = Math.cos(lat1)*Math.sin(lat2) -Math.sin(lat1)*Math.cos(lat2)*Math.cos(dLon);var brng = Math.atan2(y, x);

                  交叉點(diǎn)的方位:

                  B_bearing = brng - AD_軸承 = brng + A

                  交點(diǎn)坐標(biāo):

                  var latB = Math.asin( Math.sin(lat1)*Math.cos(Rd/R) +Math.cos(lat1)*Math.sin(Rd/R)*Math.cos(B_bearing));var lonB = lon1.toRad() + Math.atan2(Math.sin(B_bearing)*Math.sin(Rd/R)*Math.cos(lat1),Math.cos(Rd/R)-Math.sin(lat1)*Math.sin(lat2));

                  同樣適用于 D_bearing

                  latB, lonB 以弧度為單位

                  Is there an easy way to get the lat/lng of the intersection points (if available) of two circles in Google Maps API V3? Or should I go with the hard way?

                  EDIT : In my problem, circles always have the same radius, in case that makes the solution easier.

                  解決方案

                  Yes, for equal circles rather simple solution could be elaborated:
                  Let's first circle center is A point, second circle center is F, midpoint is C, and intersection points are B,D. ABC is right-angle spherical triangle with right angle C.

                  We want to find angle A - this is deviation angle from A-F direction. Spherical trigonometry (Napier's rules for right spherical triangles) gives us formula:

                  cos(A)= tg(AC) * ctg(AB) where one symbol denote spherical angle, double symbols denote great circle arcs' angles (AB, AC). We can see that AB = circle radius (in radians, of course), AC = half-distance between A and F on the great circle arc. To find AC (and other values) - I'll use code from this excellent page

                  var R = 6371; // km
                  var dLat = (lat2-lat1).toRad();
                  var dLon = (lon2-lon1).toRad();
                  var lat1 = lat1.toRad();
                  var lat2 = lat2.toRad();
                  
                  var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
                          Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2); 
                  var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); 
                  

                  and our

                  AC = c/2
                  

                  If circle radius Rd is given is kilometers, then

                  AB = Rd / R = Rd / 6371
                  

                  Now we can find angle

                  A = arccos(tg(AC) * ctg(AB))
                  

                  Starting bearing (AF direction):

                  var y = Math.sin(dLon) * Math.cos(lat2);
                  var x = Math.cos(lat1)*Math.sin(lat2) -
                          Math.sin(lat1)*Math.cos(lat2)*Math.cos(dLon);
                  var brng = Math.atan2(y, x);
                  

                  Intersection points' bearings:

                  B_bearing = brng - A
                  D_bearing = brng + A
                  

                  Intersection points' coordinates:

                  var latB = Math.asin( Math.sin(lat1)*Math.cos(Rd/R) + 
                                Math.cos(lat1)*Math.sin(Rd/R)*Math.cos(B_bearing) );
                  var lonB = lon1.toRad() + Math.atan2(Math.sin(B_bearing)*Math.sin(Rd/R)*Math.cos(lat1), 
                                       Math.cos(Rd/R)-Math.sin(lat1)*Math.sin(lat2));
                  

                  and the same for D_bearing

                  latB, lonB are in radians

                  這篇關(guān)于谷歌地圖兩個圓的交點(diǎn)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態(tài)元素 - Angular 2 amp;離子2)
                    <bdo id='EPcJn'></bdo><ul id='EPcJn'></ul>
                        • <i id='EPcJn'><tr id='EPcJn'><dt id='EPcJn'><q id='EPcJn'><span id='EPcJn'><b id='EPcJn'><form id='EPcJn'><ins id='EPcJn'></ins><ul id='EPcJn'></ul><sub id='EPcJn'></sub></form><legend id='EPcJn'></legend><bdo id='EPcJn'><pre id='EPcJn'><center id='EPcJn'></center></pre></bdo></b><th id='EPcJn'></th></span></q></dt></tr></i><div class="cwgeky6" id='EPcJn'><tfoot id='EPcJn'></tfoot><dl id='EPcJn'><fieldset id='EPcJn'></fieldset></dl></div>

                            <tbody id='EPcJn'></tbody>

                          <small id='EPcJn'></small><noframes id='EPcJn'>

                          <tfoot id='EPcJn'></tfoot>

                            <legend id='EPcJn'><style id='EPcJn'><dir id='EPcJn'><q id='EPcJn'></q></dir></style></legend>
                            主站蜘蛛池模板: 安规_综合测试仪,电器安全性能综合测试仪,低压母线槽安规综合测试仪-青岛合众电子有限公司 | 润滑脂-高温润滑脂-轴承润滑脂-食品级润滑油-索科润滑油脂厂家 | 环保袋,无纺布袋,无纺布打孔袋,保温袋,环保袋定制,环保袋厂家,环雅包装-十七年环保袋定制厂家 | 无缝钢管-聊城无缝钢管-小口径无缝钢管-大口径无缝钢管 - 聊城宽达钢管有限公司 | 软文发布平台 - 云软媒网络软文直编发布营销推广平台 | 干粉砂浆设备_干混砂浆生产线_腻子粉加工设备_石膏抹灰砂浆生产成套设备厂家_干粉混合设备_砂子烘干机--郑州铭将机械设备有限公司 | 断桥铝破碎机_铝合金破碎机_废铁金属破碎机-河南鑫世昌机械制造有限公司 | 预制围墙_工程预制围墙_天津市瑞通建筑材料有限公司 | SRRC认证_电磁兼容_EMC测试整改_FCC认证_SDOC认证-深圳市环测威检测技术有限公司 | 捷码低代码平台 - 3D数字孪生_大数据可视化开发平台「免费体验」 | 肉嫩度仪-凝胶测试仪-国产质构仪-气味分析仪-上海保圣实业发展有限公司|总部 | 档案密集架,移动密集架,手摇式密集架,吉林档案密集架-厂家直销★价格公道★质量保证 | 天津热油泵_管道泵_天津高温热油泵-天津市金丰泰机械泵业有限公司【官方网站】 | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 耐高温电缆厂家-远洋高温电缆| 电机修理_二手电机专家-河北豫通机电设备有限公司(原石家庄冀华高压电机维修中心) | 房屋质量检测-厂房抗震鉴定-玻璃幕墙检测-房屋安全鉴定机构 | 济南侦探调查-济南调查取证-山东私家侦探-山东白豹调查咨询公司 密集架|电动密集架|移动密集架|黑龙江档案密集架-大量现货厂家销售 | 赛默飞Thermo veritiproPCR仪|ProFlex3 x 32PCR系统|Countess3细胞计数仪|371|3111二氧化碳培养箱|Mirco17R|Mirco21R离心机|仟诺生物 | 517瓜水果特产网|一个专注特产好物的网站 | 压砖机_电动螺旋压力机_粉末成型压力机_郑州华隆机械tel_0371-60121717 | 广东机电安装工程_中央空调工程_东莞装饰装修-广东粤标建设有限公司 | 亿立分板机_曲线_锯片式_走刀_在线式全自动_铣刀_在线V槽分板机-杭州亿协智能装备有限公司 | 视频直播 -摄影摄像-视频拍摄-直播分发 | 空压机网_《压缩机》杂志| 电力测功机,电涡流测功机,磁粉制动器,南通远辰曳引机测试台 | 上海诺狮景观规划设计有限公司 | 欧盟ce检测认证_reach检测报告_第三方检测中心-深圳市威腾检验技术有限公司 | 哈希余氯测定仪,分光光度计,ph在线监测仪,浊度测定仪,试剂-上海京灿精密机械有限公司 | 厂房出租-厂房规划-食品技术-厂房设计-厂房装修-建筑施工-设备供应-设备求购-龙爪豆食品行业平台 | 新能源汽车电池软连接,铜铝复合膜柔性连接,电力母排-容发智能科技(无锡)有限公司 | 无尘烘箱_洁净烤箱_真空无氧烤箱_半导体烤箱_电子防潮柜-深圳市怡和兴机电 | 房在线-免费房产管理系统软件-二手房中介房屋房源管理系统软件 | 液压油缸生产厂家-山东液压站-济南捷兴液压机电设备有限公司 | 安徽控制器-合肥船用空调控制器-合肥家电控制器-合肥迅驰电子厂 安徽净化板_合肥岩棉板厂家_玻镁板厂家_安徽科艺美洁净科技有限公司 | 高铝矾土熟料_细粉_骨料_消失模_铸造用铝矾土_铝酸钙粉—嵩峰厂家 | 上海诺狮景观规划设计有限公司| 珠光砂保温板-一体化保温板-有釉面发泡陶瓷保温板-杭州一体化建筑材料 | 济南玻璃安装_济南玻璃门_济南感应门_济南玻璃隔断_济南玻璃门维修_济南镜片安装_济南肯德基门_济南高隔间-济南凯轩鹏宇玻璃有限公司 | 圆盘鞋底注塑机_连帮鞋底成型注塑机-温州天钢机械有限公司 | 多米诺-多米诺世界纪录团队-多米诺世界-多米诺团队培训-多米诺公关活动-多米诺创意广告-多米诺大型表演-多米诺专业赛事 |