I am currently doing a project on Eye tracking via internet camera, however, I am almost a newbie to C++. (The last time I touched it was abt 7-8 yrs ago)

I am able to track the eyeball using the CAMShift program, but I will need to determine the direction and distance the eyeball moved from its last location. Appreciate if the experts here can help.