how to do temporal reprojection [closed]

  3d, c++, math

how would you get a 2D motion vector from two points in 3D space, maybe depending on the rotation of the camera the distance between the two points and the distance from the camera to the points?
The first 3D point is from the current frame and the 2nd one is from the last frame.

Source: Windows Questions C++