|
-
Senior Member
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
Last edited by realMakc; 07-01-2009 at 02:20 AM.
Reason: link to example
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|