mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 00:22:50 -06:00
35 lines
1.4 KiB
Java
35 lines
1.4 KiB
Java
package com.airbnb.lottie.value;
|
|
|
|
import android.graphics.PointF;
|
|
import com.airbnb.lottie.utils.MiscUtils;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class LottieRelativePointValueCallback extends LottieValueCallback<PointF> {
|
|
private final PointF point;
|
|
|
|
public LottieRelativePointValueCallback() {
|
|
this.point = new PointF();
|
|
}
|
|
|
|
public LottieRelativePointValueCallback(PointF pointF) {
|
|
super(pointF);
|
|
this.point = new PointF();
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // com.airbnb.lottie.value.LottieValueCallback
|
|
public final PointF getValue(LottieFrameInfo<PointF> lottieFrameInfo) {
|
|
this.point.set(MiscUtils.lerp(lottieFrameInfo.getStartValue().x, lottieFrameInfo.getEndValue().x, lottieFrameInfo.getInterpolatedKeyframeProgress()), MiscUtils.lerp(lottieFrameInfo.getStartValue().y, lottieFrameInfo.getEndValue().y, lottieFrameInfo.getInterpolatedKeyframeProgress()));
|
|
PointF offset = getOffset(lottieFrameInfo);
|
|
this.point.offset(offset.x, offset.y);
|
|
return this.point;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public PointF getOffset(LottieFrameInfo<PointF> lottieFrameInfo) {
|
|
if (this.value == 0) {
|
|
throw new IllegalArgumentException("You must provide a static value in the constructor , call setValue, or override getValue.");
|
|
}
|
|
return (PointF) this.value;
|
|
}
|
|
}
|