坐标方位角计算器

Bearing from Two Coordinates

Compute the bearing (azimuth) between two points from their coordinates.

📐 计算公式
坐标方位角 α = atan2(ΔE, ΔN) × 180÷π(自北方向顺时针量取),负角 +360° 归一至 0~360°;两点水平距离 = √(ΔN² + ΔE²)(与输入坐标同单位)。校验:无强校验,坐标增量缺省按 0。判据:象限按 ΔN/ΔE 符号判定——ΔN≥0 且 ΔE≥0 第一象限、ΔN<0 且 ΔE≥0 第二、ΔN<0 且 ΔE<0 第三、ΔN≥0 且 ΔE<0 第四。

输入北向增量 Δ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°。

📚 深度解析:坐标反算方位角

💡 常见使用场景

基本
A(0,0)→B(100,100):ΔN=100、ΔE=100 → 方位角=atan2(100,100)=45°(NE 象限);边长=√20000≈141.4m。
跨象限
ΔN=−100、ΔE=100 → atan2(100,−100)=135°(SE 象限),注意 atan2(东,北) 顺序避免错象限。

❓ 常见问题(FAQ)

atan2 参数顺序?
用 atan2(ΔE, ΔN)(东、北),不是普通 atan(ΔE/ΔN),否则跨象限判错。
边长和方位一起算?
是。边 K = √(ΔN²+ΔE²),方位角随 Δ 符号定象限,二者为导线基本元素。