package com.google.android.material.shape;

import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.RectF;

/* JADX INFO: loaded from: classes2.dex */
public final class z extends d0 {

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

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

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

    public z(b0 b0Var, float f10, float f11) {
        this.f23183c = b0Var;
        this.f23184d = f10;
        this.f23185e = f11;
    }

    @Override // com.google.android.material.shape.d0
    public final void a(Matrix matrix, t9.a aVar, int i10, Canvas canvas) {
        b0 b0Var = this.f23183c;
        float f10 = b0Var.f23053c;
        float f11 = this.f23185e;
        float f12 = b0Var.f23052b;
        float f13 = this.f23184d;
        RectF rectF = new RectF(0.0f, 0.0f, (float) Math.hypot(f10 - f11, f12 - f13), 0.0f);
        Matrix matrix2 = this.f23057a;
        matrix2.set(matrix);
        matrix2.preTranslate(f13, f11);
        matrix2.preRotate(b());
        aVar.drawEdgeShadow(canvas, matrix2, rectF, i10);
    }

    public final float b() {
        b0 b0Var = this.f23183c;
        return (float) Math.toDegrees(Math.atan((b0Var.f23053c - this.f23185e) / (b0Var.f23052b - this.f23184d)));
    }
}
