Bearing from Two Coordinates
Compute the bearing (azimuth) between two points from their coordinates.
📐 计算公式
坐标方位角 α = atan2(ΔE, ΔN) × 180÷π(自北方向顺时针量取),负角 +360° 归一至 0~360°;两点水平距离 = √(ΔN² + ΔE²)(与输入坐标同单位)。校验:ΔN、ΔE 分别必填,0 合法、留空不计算。判据:ΔN=ΔE=0 为重合点、方位角未定义;ΔE=0 落在正北/正南轴线,ΔN=0 落在正东/正西轴线;其余按 ΔN/ΔE 符号判四象限。
输入北向增量 ΔN 与东向增量 ΔE,求方位角(0–360°)。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Inverse azimuth | alpha = atan2(ΔE, ΔN), where ΔN and ΔE are the north and east differences | GB 50026-2020, Code for engineering surveying |
| Quadrant determination | Use the signs of ΔN and ΔE to fix the quadrant | GB 50026-2020, Code for engineering surveying |
| Horizontal distance | D = sqrt( ΔN^2 + ΔE^2 ) | GB 50026-2020, Code for engineering surveying |
| Range | Azimuth is measured clockwise from north, ranging from 0° to 360° | GB 50026-2020, Code for engineering surveying |
📌 计算说明
- atan2(东,北) 保证象限正确。
- ΔN=ΔE=100 → 45°。