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>
                            主站蜘蛛池模板: 天然鹅卵石滤料厂家-锰砂滤料-石英砂滤料-巩义东枫净水 | LNG鹤管_内浮盘价格,上装鹤管,装车撬厂家-连云港赛威特机械 | 对辊破碎机-液压双辊式,强力双齿辊,四辊破碎机价格_巩义市金联机械设备生产厂家 | 网站制作优化_网站SEO推广解决方案-无锡首宸信息科技公司 | 一航网络-软件测评官网| 闭端端子|弹簧螺式接线头|防水接线头|插线式接线头|端子台|电源线扣+护线套|印刷电路板型端子台|金笔电子代理商-上海拓胜电气有限公司 | 不锈钢轴流风机,不锈钢电机-许昌光维防爆电机有限公司(原许昌光维特种电机技术有限公司) | 密集架-手摇-智能-移动-价格_内蒙古档案密集架生产厂家 | 高柔性拖链电缆-聚氨酯卷筒电缆-柔性屏蔽电缆厂家-玖泰电缆 | 异噻唑啉酮-均三嗪-三丹油-1227-中北杀菌剂厂家 | 台式恒温摇床价格_大容量恒温摇床厂家-上海量壹科学仪器有限公司 | 金属波纹补偿器厂家_不锈钢膨胀节价格_非金属伸缩节定制-庆达补偿器 | 塑木弯曲试验机_铜带拉伸强度试验机_拉压力测试台-倾技百科 | 在线浊度仪_悬浮物污泥浓度计_超声波泥位计_污泥界面仪_泥水界面仪-无锡蓝拓仪表科技有限公司 | 便携式表面粗糙度仪-彩屏硬度计-分体式粗糙度仪-北京凯达科仪科技有限公司 | 酸度计_PH计_特斯拉计-西安云仪 纯水电导率测定仪-万用气体检测仪-低钠测定仪-米沃奇科技(北京)有限公司www.milwaukeeinst.cn | PAS糖原染色-CBA流式多因子-明胶酶谱MMP-上海研谨生物科技有限公司 | 德国GMN轴承,GMN角接触球轴承,GMN单向轴承,GMN油封,GMN非接触式密封 | 无线联网门锁|校园联网门锁|学校智能门锁|公租房智能门锁|保障房管理系统-KEENZY中科易安 | STRO|DTRO-STRO反渗透膜(科普)_碟滤| 集装箱标准养护室-集装箱移动式养护室-广州璟业试验仪器有限公司 | 宠物店加盟_宠物连锁店_开宠物店-【派多格宠物】 | 苏商学院官网 - 江苏地区唯一一家企业家自办的前瞻型、实操型商学院 | 高铝轻质保温砖_刚玉莫来石砖厂家_轻质耐火砖价格 | 西安中国国际旅行社(西安国旅) | 低温柔性试验仪-土工布淤堵-沥青车辙试验仪-莱博特(天津)试验机有限公司 | 27PR跨境电商导航 | 专注外贸跨境电商| 矿用履带式平板车|探水钻机|气动架柱式钻机|架柱式液压回转钻机|履带式钻机-启睿探水钻机厂家 | 有机肥设备生产制造厂家,BB掺混肥搅拌机、复合肥设备生产线,有机肥料全部加工设备多少钱,对辊挤压造粒机,有机肥造粒设备 -- 郑州程翔重工机械有限公司 | 深圳装修_店面装修设计_餐厅设计_装修全包价格-尚泰装饰设计 | 艾默生变频器,艾默生ct,变频器,ct驱动器,广州艾默生变频器,供水专用变频器,风机变频器,电梯变频器,艾默生变频器代理-广州市盟雄贸易有限公司官方网站-艾默生变频器应用解决方案服务商 | 焊锡丝|焊锡条|无铅锡条|无铅锡丝|无铅焊锡线|低温锡膏-深圳市川崎锡业科技有限公司 | 干洗加盟网-洗衣店品牌排行-干洗设备价格-干洗连锁加盟指南 | 重庆监控_电子围栏设备安装公司_门禁停车场管理系统-劲浪科技公司 | 泰兴市热钻机械有限公司-热熔钻孔机-数控热熔钻-热熔钻孔攻牙一体机 | 安徽净化板_合肥岩棉板厂家_玻镁板厂家_安徽科艺美洁净科技有限公司 | 厦门网站建设_厦门网站设计_小程序开发_网站制作公司【麦格科技】 | 马尔表面粗糙度仪-MAHR-T500Hommel-Mitutoyo粗糙度仪-笃挚仪器 | 金刚网,金刚网窗纱,不锈钢网,金刚网厂家- 河北萨邦丝网制品有限公司 | 没斑啦-专业的祛斑美白嫩肤知识网站-去斑经验分享 | _网名词典_网名大全_qq网名_情侣网名_个性网名 |