笛卡尔坐标系中两点之间的距离用距离公式计算:d = √[(x₂-x₁)² + (y₂-y₁)²]。此公式源自勾股定理。例如,对于点(2, 3)和(6, 7):d = √[(6-2)² + (7-3)²] = √[16 + 16] = √32 ≈ 5.66个单位。对于实际地理问题,使用半正矢公式计算地球球面上的距离。对于3D空间中的点,在平方根下添加(z₂-z₁)²项。
数学5 min readApril 13, 2026
How to Calculate Distance Between Two Points: Distance Formula
Apply the distance formula d = √((x₂−x₁)² + (y₂−y₁)²) to find the straight-line distance between any two coordinates in 2D and 3D space, with worked examples.
试用免费计算器
Topics:distance formulacoordinate geometryPythagorean theoremalgebra2D 3D
试用免费计算器
无需注册