距离计算

📏 Distance Calculator

Compute horizontal distance and slope corrections from survey observations.

📐 计算公式
坐标正反算(本页代码口径,双模式):反算(两点→距离方位)S=√(Δx²+Δy²)、方位角 α=atan2(Δx,Δy)×180÷π,负值加 360 归 0–360°;正算(一点+距离方位→另一点)x₂=x₁+S×sin(α)、y₂=y₁+S×cos(α)(α 先化弧度代入)。校验:当前模式对应输入任一非数值即清空结果(无错误提示)。判据:无固定分级,方位名按 16 方位表取 round(α÷22.5)%16(正北、北偏东……北偏西)。

平面坐标正算与反算:由两点坐标求距离与方位角,或由一点、距离、方位角求另一点

方位角从正北顺时针计,0—360°。反算公式:S=√(Δx²+Δy²),α=atan2(Δx,Δy);正算:x₂=x₁+S·sinα,y₂=y₁+S·cosα。

📚 深度解析:距离计算(多模式)

💡 常见使用场景

  • 平面/斜距/三维距离按输入算。
  • 全站仪数据整理。
  • 多种距离口径互转。
斜距改化
斜距 100.5m、天顶距 84.29°(即俯角 5.71°)→ 水平距=100.5×sin(84.29°)=100.0m,高差=100.5×cos(84.29°)=10.0m。
三维
叠加高差得空间距,平距+高差组合核对全站仪成果。

❓ 常见问题(FAQ)

斜距怎么改水平?
水平距=斜距×sin(天顶距) 或 ×cos(俯角),高差=斜距×cos(天顶距)。
天顶距和俯角?
天顶距从天顶量(0–180°),俯角=90°−天顶距;别混用符号。

Formula & Standard References

Item Formula / Note Source / Standard
Inverse computation D = sqrt( (x2 - x1)^2 + (y2 - y1)^2 ); alpha = atan2(Δy, Δx) GB 50026-2020, Code for engineering surveying
Forward computation x2 = x1 + D · cos(alpha); y2 = y1 + D · sin(alpha) GB 50026-2020, Code for engineering surveying
Mutual check A forward computation followed by an inverse one must reproduce the input GB 50026-2020, Code for engineering surveying
Units and rounding Round distances to mm or cm and angles to seconds, as the project precision requires GB 50026-2020, Code for engineering surveying
⚠️ 使用说明与注意事项
📖关于「距离计算」 ▼

📝工具简介

距离计算是一款科学研究领域的在线工具。科学研究工具,采用标准科学公式,计算精准。

✨功能特点

🎯使用场景