久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" id='Sapvf'><tfoot id='Sapvf'></tfoot><dl id='Sapvf'><fieldset id='Sapvf'></fieldset></dl></div>
                            主站蜘蛛池模板: 一级片成人 | 国产成人高清视频 | 黄色一级在线播放 | 欧美日韩福利视频 | 久久精品久久精品久久精品 | av在线一区二区三区 | 精品久久久久久久久久 | 国产在线一区二 | 午夜影晥 | k8久久久一区二区三区 | 久久久久国产 | 三级免费av| 亚洲视频一区二区三区 | 老牛影视av一区二区在线观看 | 欧美日韩一区在线 | 久久精品国产亚洲一区二区三区 | 亚洲国产精品99久久久久久久久 | 影音先锋欧美资源 | 免费在线观看一区二区 | 久久九九免费 | 精品日韩一区 | 色综合99| 国产午夜精品久久 | 91精品国产综合久久久久久首页 | 麻豆hd | 成人福利 | 欧美网址在线观看 | 情侣酒店偷拍一区二区在线播放 | 亚洲精品白浆高清久久久久久 | 婷婷久| 免费观看黄| 日韩一区二区成人 | 日韩字幕一区 | 在线看亚洲 | 狠狠的干狠狠的操 | 久久99精品久久久 | 日韩精品免费一区二区在线观看 | 国产欧美一级 | 手机看片169 | 国产在线观看一区二区 | 在线视频 亚洲 |