package com.google.android.material.shape;

import defpackage.vo6;

/* JADX INFO: loaded from: classes2.dex */
public class TriangleEdgeTreatment extends EdgeTreatment {
    private final boolean inside;
    private final float size;

    public TriangleEdgeTreatment(float f, boolean z) {
        this.size = f;
        this.inside = z;
    }

    @Override // com.google.android.material.shape.EdgeTreatment
    public void getEdgePath(float f, float f2, float f3, @vo6 ShapePath shapePath) {
        if (!this.inside) {
            float f4 = this.size;
            shapePath.lineTo(f2 - (f4 * f3), 0.0f, f2, (-f4) * f3);
            shapePath.lineTo((this.size * f3) + f2, 0.0f, f, 0.0f);
        } else {
            shapePath.lineTo(f2 - (this.size * f3), 0.0f);
            float f5 = this.size;
            shapePath.lineTo(f2, f5 * f3, (f5 * f3) + f2, 0.0f);
            shapePath.lineTo(f, 0.0f);
        }
    }
}
