Array |
getPosition
(&l<Number> 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
Array
getPosition
(&l<Number> t;Array> points, t)
Get the current position of the animated element based on t.
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.
- Parameters:
-
points
- An array containing Bezier points -
t
- A number between 0 and 1 which is the basis for determining current position
- Returns:
- An array containing int x and y member data