The points are and .
If the initial point is and the terminal point is , then the position vector is . \ \
Substitute the points and in above equation.
The position vector is