 The position of one point "A" relative to another point "B" is simply the difference between their positions

formula_23

which is the difference between the components of their position vectors.If point "A" has position components 
formula_24

If point "B" has position components 
formula_25

then the position of point "A" relative to point "B" is the difference between their components