blob: cb4b61796d979194c81fe6c9211e3722dc991fb6 [file] [log] [blame]
package com.airbnb.lottie.value;
import android.graphics.PointF;
/**
* Static value version of {@link LottieRelativePointValueCallback}.
*/
public class LottieStaticRelativePointValue extends LottieRelativePointValueCallback {
private final PointF offset;
public LottieStaticRelativePointValue(PointF offset) {
this.offset = offset;
}
@Override
public PointF getOffset(
float startFrame, float endFrame,
PointF startValue, PointF endValue,
float linearKeyframeProgress, float interpolatedKeyframeProgress,
float overallProgress) {
return offset;
}
}