A force directed along a line

A cable's force points along the line between its two ends, so it equals its size times the unit vector of the position vector from one end to the other.

From Statics.