How to calculate vector coordinates A (a, b) B (C, d) then the vector AB is (C-A, D-B)

How to calculate vector coordinates A (a, b) B (C, d) then the vector AB is (C-A, D-B)

Yes, the coordinates of the vector AB should be the coordinates of the end point B (C, d) minus the coordinates of the starting point a (a, b),
Pay attention to the corresponding subtraction of coordinates