47 lines
1.4 KiB
Java
47 lines
1.4 KiB
Java
package c.c.a.w.c;
|
|
|
|
import android.graphics.Path;
|
|
import android.graphics.PathMeasure;
|
|
import android.graphics.PointF;
|
|
import c.c.a.c0.a;
|
|
import c.c.a.c0.c;
|
|
import java.util.List;
|
|
/* compiled from: PathKeyframeAnimation */
|
|
public class i extends f<PointF> {
|
|
public final PointF i = new PointF();
|
|
public final float[] j = new float[2];
|
|
public h k;
|
|
public PathMeasure l = new PathMeasure();
|
|
|
|
public i(List<? extends a<PointF>> list) {
|
|
super(list);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: T */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: T */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // c.c.a.w.c.a
|
|
public Object f(a aVar, float f) {
|
|
PointF pointF;
|
|
h hVar = (h) aVar;
|
|
Path path = hVar.o;
|
|
if (path == null) {
|
|
return aVar.b;
|
|
}
|
|
c<A> cVar = this.e;
|
|
if (cVar != 0 && (pointF = (PointF) cVar.a(hVar.e, hVar.f.floatValue(), hVar.b, hVar.f263c, d(), f, this.d)) != null) {
|
|
return pointF;
|
|
}
|
|
if (this.k != hVar) {
|
|
this.l.setPath(path, false);
|
|
this.k = hVar;
|
|
}
|
|
PathMeasure pathMeasure = this.l;
|
|
pathMeasure.getPosTan(pathMeasure.getLength() * f, this.j, null);
|
|
PointF pointF2 = this.i;
|
|
float[] fArr = this.j;
|
|
pointF2.set(fArr[0], fArr[1]);
|
|
return this.i;
|
|
}
|
|
}
|