This question is a continuation of the previous one:
Draw a cube, ABCD-A1B1C1D1, with the length of the edge as 1. How to draw this cube and establish a space rectangular coordinate system at the same time. Point A on the bottom is the origin of the coordinate system, the line AB is on the x-axis, the line AD is on the y-axis, and the line AA1 is on the z-axis.
After establishing the spatial rectangular coordinate system, the coordinates of each vertex of the cube are known.How can I get the coordinates of a vector composed of any two vertices? Can I get it automatically?
For example, if you input vector AB, you can get the coordinate AB of vector AB={1,0,0}and so on...