gov.nasa.worldwind.animation
Class RotateToAngleAnimator
java.lang.Object
gov.nasa.worldwind.animation.BasicAnimator
gov.nasa.worldwind.animation.AngleAnimator
gov.nasa.worldwind.animation.RotateToAngleAnimator
- All Implemented Interfaces:
- Animator
public class RotateToAngleAnimator
- extends AngleAnimator
Method Summary |
void |
next()
Calls the set method with the next interpolant as determined
by the interpolator member. |
Angle |
nextAngle(double interpolant)
|
protected void |
setImpl(double interpolant)
Set the value being animated via the PropertyAccessor
using the passed interpolant. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotateToAngleAnimator
public RotateToAngleAnimator(Angle begin,
Angle end,
double smoothing,
PropertyAccessor.AngleAccessor propertyAccessor)
next
public void next()
- Description copied from class:
BasicAnimator
- Calls the
set
method with the next interpolant
as determined
by the interpolator
member.
- Specified by:
next
in interface Animator
- Overrides:
next
in class BasicAnimator
nextAngle
public Angle nextAngle(double interpolant)
setImpl
protected void setImpl(double interpolant)
- Description copied from class:
AngleAnimator
- Set the value being animated via the
PropertyAccessor
using the passed interpolant. This implementation just does a straight liner interpolation
between the AngleAnimator.begin
and AngleAnimator.end
values.
- Overrides:
setImpl
in class AngleAnimator
- Parameters:
interpolant
- the interpolant used to generate the next value that will be set by the
PropertyAccessor