package com.airbnb.lottie.value; import android.graphics.PointF; import com.airbnb.lottie.utils.MiscUtils; /* loaded from: classes2.dex */ public class LottieRelativePointValueCallback extends LottieValueCallback { 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 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 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; } }