Both points must use the same reference frame. Displacement Δ = P2 − P1; straight-line distance d = √(ΔX² + ΔY² + ΔZ²). Actual robot path length and joint travel are excluded.