Vector between the points is used to compute displacement and the direction of force:
v = point1 - point0 displacement = v.length() - restLength v.normalize() force = springConstant * displacement * v