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

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

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

      3. <small id='vG9sa'></small><noframes id='vG9sa'>

        生成給定距離的坐標,距中心的角度

        Generate coordinates given distance, angle from a center(生成給定距離的坐標,距中心的角度)
          <tbody id='w4XuU'></tbody>
          <tfoot id='w4XuU'></tfoot>
        • <legend id='w4XuU'><style id='w4XuU'><dir id='w4XuU'><q id='w4XuU'></q></dir></style></legend>
            <bdo id='w4XuU'></bdo><ul id='w4XuU'></ul>

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

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

                  本文介紹了生成給定距離的坐標,距中心的角度的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在地圖 [x1,y1] 中有一個給定的中心.從那個中心我畫一個半徑為 1 英里的圓.我需要在圓周圍再生成 8 個點,各個點到中心的距離應該是 1 英里,所以它們在圓的邊界上.我確實知道得到 x2, y2 的公式,但問題是它不適用于地球地圖,因為它不是一個完美的球體.

                  I have a given center in the map [x1,y1]. From that center I am drawing a circle with a 1 mile radius. I need to generate 8 more points around the circle, the distance between the individual points to center should be 1 mile, so they are on the circle bounds. I do know the formulas to get x2, y2 but the problem is it doesn't apply to earth's map since it isn't a perfect sphere.

                  我嘗試過使用 this,但沒有成功.

                  I've tried using this, but with no luck.

                  誰能指出我的某個地方,或者我弄錯了?

                  Could anyone point me somewhere or maybe I got this wrong ?

                  已解決!

                  所以仔細閱讀整個 Movable Type Scripts 我發現了這個(為了我的使用稍微修改了):

                  So reading carefully throughout Movable Type Scripts I found this (slightly modified for my use):

                     let getPoint = (distance, bearing, center) => {
                  
                      let δ = Number(distance) / 6371e3; 
                      let θ = Number(bearing).toRadians();
                  
                      let φ1 = center[0].toRadians();
                      let λ1 = center[1].toRadians();
                  
                      let sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1);
                      let sinδ = Math.sin(δ), cosδ = Math.cos(δ);
                      let sinθ = Math.sin(θ), cosθ = Math.cos(θ);
                  
                      let sinφ2 = sinφ1*cosδ + cosφ1*sinδ*cosθ;
                      let φ2 = Math.asin(sinφ2);
                      let y = sinθ * sinδ * cosφ1;
                      let x = cosδ - sinφ1 * sinφ2;
                      let λ2 = λ1 + Math.atan2(y, x);
                  
                      return [φ2.toDegrees(), (λ2.toDegrees()+540)%360-180]; 
                  };
                  

                  它確實解決了我的問題.

                  It did solved my problem.

                  推薦答案

                  您正在嘗試解決所謂的 第一個(或直接的)大地測量問題.知道這個名字會讓你的研究更容易.

                  You are trying to solve what is known as the first (or direct) geodetic problem. Knowing this name will make your research easier.

                  正如如何使用 Leaflet" 和 "在給定起始坐標、方位角和距離的情況下查找目的地坐標",您在 javascript 中解決此問題的主要選項是 cheap-ruler 用于小(ish)區域和 greographiclib 適合遠距離.

                  As pointed out by the answers to "How to draw polyline perpendicular to another polyline using Leaflet" and "Find destination coordinates given starting coodinates, bearing, and distance", your main options to approach this problem in javascript are cheap-ruler for small(ish) areas and greographiclib for large distances.

                  cheap-ruler 往往非常快但不準確,geographiclib 往往較慢但非常準確.

                  cheap-ruler tends to be very fast but inaccurate, and geographiclib tends to be slower but very accurate.

                  您可能會發現其他實現,每個都有自己的妥協.大地測量學很難,所以 沒有一種真正的方法"來計算距離或方位角.

                  You might find other implementations, each with its own compromises. Geodesy is hard, so there is no "one true way" to calculate distances or azimuths.

                  這篇關于生成給定距離的坐標,距中心的角度的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  Trigger click on leaflet marker(觸發點擊傳單標記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認加載磁貼顏色?)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標記的緯度和經度)
                    <tbody id='Sapvf'></tbody>
                    <legend id='Sapvf'><style id='Sapvf'><dir id='Sapvf'><q id='Sapvf'></q></dir></style></legend>
                      <bdo id='Sapvf'></bdo><ul id='Sapvf'></ul>
                      <tfoot id='Sapvf'></tfoot>
                    • <small id='Sapvf'></small><noframes id='Sapvf'>

                            <i id='Sapvf'><tr id='Sapvf'><dt id='Sapvf'><q id='Sapvf'><span id='Sapvf'><b id='Sapvf'><form id='Sapvf'><ins id='Sapvf'></ins><ul id='Sapvf'></ul><sub id='Sapvf'></sub></form><legend id='Sapvf'></legend><bdo id='Sapvf'><pre id='Sapvf'><center id='Sapvf'></center></pre></bdo></b><th id='Sapvf'></th></span></q></dt></tr></i><div class="zemtfvc" id='Sapvf'><tfoot id='Sapvf'></tfoot><dl id='Sapvf'><fieldset id='Sapvf'></fieldset></dl></div>
                            主站蜘蛛池模板: 伟秀电气有限公司-10kv高低压开关柜-高低压配电柜-中置柜-充气柜-欧式箱变-高压真空断路器厂家 | 紫外线老化试验箱_uv紫外线老化试验箱价格|型号|厂家-正航仪器设备 | 陕西华春网络科技股份有限公司| 耐高温硅酸铝板-硅酸铝棉保温施工|亿欧建设工程 | 昆明网络公司|云南网络公司|昆明网站建设公司|昆明网页设计|云南网站制作|新媒体运营公司|APP开发|小程序研发|尽在昆明奥远科技有限公司 | 杭州|上海贴标机-百科 | 道达尔润滑油-食品级润滑油-道达尔导热油-合成导热油,深圳道达尔代理商合-深圳浩方正大官网 | 展厅设计公司,展厅公司,展厅设计,展厅施工,展厅装修,企业展厅,展馆设计公司-深圳广州展厅设计公司 | 超声波_清洗机_超声波清洗机专业生产厂家-深圳市好顺超声设备有限公司 | 婚博会2024时间表_婚博会门票领取_婚博会地址-婚博会官网 | 企业微信scrm管理系统_客户关系管理平台_私域流量运营工具_CRM、ERP、OA软件-腾辉网络 | SDG吸附剂,SDG酸气吸附剂,干式酸性气体吸收剂生产厂家,超过20年生产使用经验。 - 富莱尔环保设备公司(原名天津市武清县环保设备厂) | 济南网站策划设计_自适应网站制作_H5企业网站搭建_济南外贸网站制作公司_锐尚 | 硬质合金模具_硬质合金非标定制_硬面加工「生产厂家」-西迪技术股份有限公司 | 据信,上课带着跳 D 体验-别样的课堂刺激感受引发网友热议 | 暖气片十大品牌厂家_铜铝复合暖气片厂家_暖气片什么牌子好_欣鑫达散热器 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库 | 篮球架_乒乓球台_足球门_校园_竞技体育器材_厂家_价格-沧州浩然体育器材有限公司 | 天命文免费算命堂_自助算命_自由算命系统_长文周易 | 塑料撕碎机_编织袋撕碎机_废纸撕碎机_生活垃圾撕碎机_废铁破碎机_河南鑫世昌机械制造有限公司 | 齿辊分级破碎机,高低压压球机,立式双动力磨粉机-郑州长城冶金设备有限公司 | 实战IT培训机构_IT培训班选大学生IT技术培训中心_中公优就业 | 杰福伦_磁致伸缩位移传感器_线性位移传感器-意大利GEFRAN杰福伦-河南赉威液压科技有限公司 | Trimos测长机_测高仪_TESA_mahr,WYLER水平仪,PWB对刀仪-德瑞华测量技术(苏州)有限公司 | 南京兰江泵业有限公司-水解酸化池潜水搅拌机-絮凝反应池搅拌机-好氧区潜水推进器 | 河北凯普威医疗器材有限公司,高档轮椅系列,推车系列,座厕椅系列,协步椅系列,拐扙系列,卫浴系列 | 液压压力机,液压折弯机,液压剪板机,模锻液压机-鲁南新力机床有限公司 | 武汉高低温试验箱_恒温恒湿试验箱厂家-武汉蓝锐环境科技有限公司 | 深圳工程师职称评定条件及流程_深圳职称评审_职称评审-职称网 | 砂石生产线_石料生产线设备_制砂生产线设备价格_生产厂家-河南中誉鼎力智能装备有限公司 | MVE振动电机_MVE震动电机_MVE卧式振打电机-河南新乡德诚生产厂家 | 垃圾清运公司_环卫保洁公司_市政道路保洁公司-华富环境 | 影像测量仪_三坐标测量机_一键式二次元_全自动影像测量仪-广东妙机精密科技股份有限公司 | 纳米二氧化硅,白炭黑,阴离子乳化剂-臻丽拾科技 | 磁棒电感生产厂家-电感器厂家-电感定制-贴片功率电感供应商-棒形电感生产厂家-苏州谷景电子有限公司 | 黑田精工电磁阀-CAMMOZI气缸-ROSS电磁-上海茂硕机械设备有限公司 | 特材真空腔体_哈氏合金/镍基合金/纯镍腔体-无锡国德机械制造有限公司 | 润东方环保空调,冷风机,厂房车间降温设备-20年深圳环保空调生产厂家 | ISO9001认证咨询_iso9001企业认证代理机构_14001|18001|16949|50430认证-艾世欧认证网 | 智慧农业|农业物联网|现代农业物联网-托普云农物联网官方网站 | 数显水浴恒温振荡器-分液漏斗萃取振荡器-常州市凯航仪器有限公司 |