Quote Originally Posted by realMakc View Post
this expression may be used for your curved path formula coordinates at any moment of time. the degree has nothing to do with angle, it is polynomial degree, or length of pos and val arrays. desiredPos could be current time or frame count, retVal could be one of mouse coordinates; pos and val are corresponding things for mouse "gesture" data. in case of pos.length == val.length == 2 you obviously have a line passing through two endpoints, 3 gives you quadratic curve, 4 - cubic curve, etc.

edit: see an example here
You sir are a gentleman and a scholar thanks alot.