public class TranslationAnimator extends AbstractTransformAnimator
Constructor and Description |
---|
TranslationAnimator(AffineTransform3D transformStart,
double[] targetTranslation,
long duration) |
Modifier and Type | Method and Description |
---|---|
AffineTransform3D |
get(double t)
Returns an
AffineTransform3D for the specified completion factor. |
getCurrent
isComplete, ratioComplete, setTime
public TranslationAnimator(AffineTransform3D transformStart, double[] targetTranslation, long duration)
public AffineTransform3D get(double t)
AbstractTransformAnimator
AffineTransform3D
for the specified completion factor.
For values below 0, that starting transform should be returned. For
values larger than 1, the final transform should be returned. Values
below 0 and 1 should interpolate between the two, depending on the
concrete animation implementation.get
in class AbstractTransformAnimator
t
- the completion factor, ranging from 0 to 1.Copyright © 2015–2021 Fiji. All rights reserved.