package p9;

import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.Rect;

/* JADX INFO: loaded from: classes2.dex */
public abstract class p {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final d f31875a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Path f31876b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Path f31877c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final PathMeasure f31878d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Matrix f31879e;

    public p(d dVar) {
        Path path = new Path();
        this.f31876b = path;
        this.f31877c = new Path();
        this.f31878d = new PathMeasure(path, false);
        this.f31875a = dVar;
        this.f31879e = new Matrix();
    }

    public static float h(float[] fArr) {
        return (float) Math.toDegrees(Math.atan2(fArr[1], fArr[0]));
    }

    public abstract void a(Canvas canvas, Rect rect, float f10, boolean z10, boolean z11);

    public abstract void b(int i10, int i11, Canvas canvas, Paint paint);

    public abstract void c(Canvas canvas, Paint paint, n nVar, int i10);

    public abstract void d(Canvas canvas, Paint paint, float f10, float f11, int i10, int i11, int i12);

    public abstract int e();

    public abstract int f();

    public abstract void g();
}
