public abstract class TurnAnimator extends Object implements WeightedAnimator
Modifier | Constructor and Description |
---|---|
protected |
TurnAnimator(double startDirection,
double endDirection,
boolean clockwise)
Constructs turn animator.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeDirection(double fraction)
Computes direction that corresponds to given animation fraction.
|
double |
getAngleChange()
Returns change of angle in degrees during the turn animation.
|
long |
getWeight()
Returns weight of the animator.
|
protected TurnAnimator(double startDirection, double endDirection, boolean clockwise)
startDirection
- the initial direction in degrees when animation startsendDirection
- the final direction in degrees after animationclockwise
- the direction of rotation (turning).public double getAngleChange()
public long getWeight()
WeightedAnimator
getWeight
in interface WeightedAnimator
protected double computeDirection(double fraction)
fraction
- the animation fraction.Copyright © 2017. All rights reserved.