public class RotateToAngleAnimator extends AngleAnimator
begin, end, propertyAccessor
interpolator
Constructor and Description |
---|
RotateToAngleAnimator(Angle begin,
Angle end,
double smoothing,
PropertyAccessor.AngleAccessor propertyAccessor) |
Modifier and Type | Method and Description |
---|---|
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. |
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start, stop
public RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
public void next()
BasicAnimator
set
method with the next interpolant
as determined
by the interpolator
member.next
in interface Animator
next
in class BasicAnimator
public Angle nextAngle(double interpolant)
protected void setImpl(double interpolant)
AngleAnimator
PropertyAccessor
using the passed interpolant. This implementation just does a straight liner interpolation
between the AngleAnimator.begin
and AngleAnimator.end
values.setImpl
in class AngleAnimator
interpolant
- the interpolant used to generate the next value that will be set by the
PropertyAccessor