package defpackage;

import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Shader;

/* JADX INFO: renamed from: ˎᵕ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1732 extends AbstractC0304 {

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C4725 f6934;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final float f6935;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final float f6936;

    public C1732(C4725 c4725, float f, float f2) {
        this.f6934 = c4725;
        this.f6936 = f;
        this.f6935 = f2;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final float m4779() {
        C4725 c4725 = this.f6934;
        return (float) Math.toDegrees(Math.atan((c4725.f17976 - this.f6935) / (c4725.f17975 - this.f6936)));
    }

    @Override // defpackage.AbstractC0304
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo1558(Matrix matrix, C2748 c2748, int i, Canvas canvas) {
        C4725 c4725 = this.f6934;
        float f = c4725.f17976;
        float f2 = this.f6935;
        float f3 = c4725.f17975;
        float f4 = this.f6936;
        RectF rectF = new RectF(0.0f, 0.0f, (float) Math.hypot(f - f2, f3 - f4), 0.0f);
        Matrix matrix2 = this.f1978;
        matrix2.set(matrix);
        matrix2.preTranslate(f4, f2);
        matrix2.preRotate(m4779());
        c2748.getClass();
        rectF.bottom += i;
        rectF.offset(0.0f, -i);
        int i2 = c2748.f10564;
        int[] iArr = C2748.f10561;
        iArr[0] = i2;
        iArr[1] = c2748.f10562;
        iArr[2] = c2748.f10566;
        Paint paint = (Paint) c2748.f10569;
        float f5 = rectF.left;
        paint.setShader(new LinearGradient(f5, rectF.top, f5, rectF.bottom, iArr, C2748.f10559, Shader.TileMode.CLAMP));
        canvas.save();
        canvas.concat(matrix2);
        canvas.drawRect(rectF, paint);
        canvas.restore();
    }
}
