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;

/* renamed from: ᵙˏᵹᵼ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2586 extends AbstractC5566 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final float f10030;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C0333 f10031;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final float f10032;

    public C2586(C0333 c0333, float f, float f2) {
        this.f10031 = c0333;
        this.f10032 = f;
        this.f10030 = f2;
    }

    @Override // defpackage.AbstractC5566
    /* renamed from: ᵥᵯˎ */
    public final void mo5277(Matrix matrix, C2321 c2321, int i, Canvas canvas) {
        C0333 c0333 = this.f10031;
        float f = c0333.f2027;
        float f2 = this.f10030;
        float f3 = c0333.f2028;
        float f4 = this.f10032;
        RectF rectF = new RectF(0.0f, 0.0f, (float) Math.hypot(f - f2, f3 - f4), 0.0f);
        Matrix matrix2 = this.f20877;
        matrix2.set(matrix);
        matrix2.preTranslate(f4, f2);
        matrix2.preRotate(m6505());
        c2321.getClass();
        rectF.bottom += i;
        rectF.offset(0.0f, -i);
        int i2 = c2321.f9102;
        int[] iArr = C2321.f9096;
        iArr[0] = i2;
        iArr[1] = c2321.f9104;
        iArr[2] = c2321.f9103;
        Paint paint = (Paint) c2321.f9101;
        float f5 = rectF.left;
        paint.setShader(new LinearGradient(f5, rectF.top, f5, rectF.bottom, iArr, C2321.f9097, Shader.TileMode.CLAMP));
        canvas.save();
        canvas.concat(matrix2);
        canvas.drawRect(rectF, paint);
        canvas.restore();
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final float m6505() {
        C0333 c0333 = this.f10031;
        return (float) Math.toDegrees(Math.atan((c0333.f2027 - this.f10030) / (c0333.f2028 - this.f10032)));
    }
}
