object |
getPosition
(&l<float> t;array> points, t)
Get the current position of the animated element based on t.
|
Class YAHOO.util.Bezier
Object | +--YAHOO.util.Bezier
class
YAHOO.util.Bezier
Method Summary [top]
Constructor Detail [top]
YAHOO.util.Bezier
YAHOO.util.Bezier
Method Detail [top]
getPosition
object
getPosition
(&l<float> t;array> points, t)
Get the current position of the animated element based on t.
- Parameters:
-
points
- An array containing Bezier points. Each point is an array of "x" and "y" values (0 = x, 1 = y) At least 2 points are required (start and end). First point is start. Last point is end. Additional control points are optional. -
t
- Basis for determining current position (0 < t < 1)
- Returns:
- An object containing int x and y member data