坐标方位角计算器

Bearing from Two Coordinates

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

📐 计算公式
α = atan2(ΔE, ΔN)

输入北向增量 ΔN 与东向增量 ΔE,求方位角(0–360°)。

📌 计算说明
  • 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²),方位角随 Δ 符号定象限,二者为导线基本元素。