Package 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
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.animation.AngleAnimator
begin, end, propertyAccessor
-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnext()Calls thesetmethod with the nextinterpolantas determined by theinterpolatormember.AnglenextAngle(double interpolant)protected voidsetImpl(double interpolant)Set the value being animated via thePropertyAccessorusing the passed interpolant.-
Methods inherited from class gov.nasa.worldwind.animation.AngleAnimator
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start, stop
-
-
-
-
Constructor Detail
-
RotateToAngleAnimator
public RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
-
-
Method Detail
-
next
public void next()
Description copied from class:BasicAnimatorCalls thesetmethod with the nextinterpolantas determined by theinterpolatormember.- Specified by:
nextin interfaceAnimator- Overrides:
nextin classBasicAnimator
-
setImpl
protected void setImpl(double interpolant)
Description copied from class:AngleAnimatorSet the value being animated via thePropertyAccessorusing the passed interpolant. This implementation just does a straight liner interpolation between theAngleAnimator.beginandAngleAnimator.endvalues.- Overrides:
setImplin classAngleAnimator- Parameters:
interpolant- the interpolant used to generate the next value that will be set by thePropertyAccessor
-
nextAngle
public Angle nextAngle(double interpolant)
-
-