discord-jadx/app/src/main/java/c/c/a/w/c/j.java

37 lines
1.1 KiB
Java

package c.c.a.w.c;
import android.graphics.PointF;
import c.c.a.c0.a;
import c.c.a.c0.c;
import java.util.List;
/* compiled from: PointKeyframeAnimation */
public class j extends f<PointF> {
public final PointF i = new PointF();
public j(List<a<PointF>> list) {
super(list);
}
@Override // c.c.a.w.c.a
public Object f(a aVar, float f) {
PointF pointF;
PointF pointF2;
PointF pointF3 = aVar.b;
if (pointF3 == null || (pointF = aVar.f269c) == null) {
throw new IllegalStateException("Missing values for keyframe.");
}
PointF pointF4 = pointF3;
PointF pointF5 = pointF;
c<A> cVar = this.e;
if (cVar != 0 && (pointF2 = (PointF) cVar.a(aVar.e, aVar.f.floatValue(), pointF4, pointF5, f, d(), this.d)) != null) {
return pointF2;
}
PointF pointF6 = this.i;
float f2 = pointF4.x;
float a = c.d.b.a.a.a(pointF5.x, f2, f, f2);
float f3 = pointF4.y;
pointF6.set(a, ((pointF5.y - f3) * f) + f3);
return this.i;
}
}