Skip to content

Commit

Permalink
tweak post
Browse files Browse the repository at this point in the history
  • Loading branch information
dothinking committed Mar 20, 2021
1 parent 15b6a17 commit 1f6fd6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mathjax: true




## 球面距离公式

球面距离$d$的常用计算公式为`Haversine`公式 [^1] [^2]
Expand All @@ -46,7 +47,7 @@ d &= R\,\delta\\\\
- 代入计算的经、纬度为换算后的弧度值。
- 公式中反正切函数`atan2()`区别于常规的`atan()`

**推导思路**:求出$\overset{\frown}{PQ}$对应的球心角$\delta$后使用$d = R\,\delta$求出球面距离。
**推导思路**:求出$\overset{\frown}{PQ}$对应的球心角$\delta$,然后使用$d = R\,\delta$求出球面距离。

在球面三角形NPQ中直接使用球面三角形的余弦定理(Spherical law of cosines)[^3] [^4]

Expand Down Expand Up @@ -82,6 +83,10 @@ $$
\delta = 2\,atan2\frac{\sqrt{a}}{\sqrt{1-a}}
$$

!!! note "说明:"
以上关于角度的推导基于单位球,即$OP=OQ=1$。


## 方位角公式

方位角$\theta$的计算公式:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ $$
\end{align\*}


!!! note "说明:"
以上关于角度的推导基于单位球,即$OP=OQ=1$。


## 方位角公式

方位角$\theta$的计算公式:
Expand Down

0 comments on commit 1f6fd6c

Please sign in to comment.