where Xs and
Xd are the original positions of the two points, and
us and
ud are their respective displacements. For the special case where the source point is selected as a fixed point,
The spring extension Δl is computed as the difference between the current spring length and the free length,