How to get the same annotation position points in the next frame?

As title show, I want to get the same annotation position points in the next frame.
For example, I draw a rectangle in one volume viewport, the coordinates of four points will be obtained.

How to calculate the coordinates of the four points at the same position in the next frame based on these four points?
I’m curious if this is possible?

There are some code here in cornerstone3d tools