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

48 lines
1.5 KiB
Java

package c.c.a.w.c;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import androidx.annotation.Nullable;
import c.c.a.b0.g;
import c.c.a.c0.a;
import c.c.a.d;
/* compiled from: PathKeyframe */
public class h extends a<PointF> {
@Nullable
public Path o;
public final a<PointF> p;
public h(d dVar, a<PointF> aVar) {
super(dVar, aVar.b, aVar.f269c, aVar.d, aVar.e, aVar.f);
this.p = aVar;
e();
}
public void e() {
PointF pointF;
PointF pointF2 = this.f269c;
boolean z2 = (pointF2 == null || (pointF = this.b) == null || !pointF.equals(pointF2.x, pointF2.y)) ? false : true;
PointF pointF3 = this.f269c;
if (pointF3 != null && !z2) {
PointF pointF4 = this.b;
PointF pointF5 = pointF3;
a<PointF> aVar = this.p;
PointF pointF6 = aVar.m;
PointF pointF7 = aVar.n;
PathMeasure pathMeasure = g.a;
Path path = new Path();
path.moveTo(pointF4.x, pointF4.y);
if (pointF6 == null || pointF7 == null || (pointF6.length() == 0.0f && pointF7.length() == 0.0f)) {
path.lineTo(pointF5.x, pointF5.y);
} else {
float f = pointF4.x;
float f2 = pointF5.x;
float f3 = pointF5.y;
path.cubicTo(pointF6.x + f, pointF4.y + pointF6.y, f2 + pointF7.x, f3 + pointF7.y, f2, f3);
}
this.o = path;
}
}
}