public class TurtleMoveAnimator extends MoveAnimator
Constructor and Description |
---|
TurtleMoveAnimator(Turtle turtle,
Point2D... points)
Constructs the move animator for a turtle along a path defined by given
set of points.
|
Modifier and Type | Method and Description |
---|---|
void |
animate(double fraction)
Changes the state of object with respect current phase of animation.
|
computePosition, getTrajectoryLength
public void animate(double fraction)
Animator
fraction
- the animation fraction - a real number between 0 and 1.Copyright © 2017. All rights reserved.