alexandroid/decompiled/jadx/sources/com/google/android/material/shape/TriangleEdgeTreatment.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

30 lines
1 KiB
Java

package com.google.android.material.shape;
import androidx.annotation.NonNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes7.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, @NonNull ShapePath shapePath) {
boolean z = this.inside;
float f4 = this.size;
if (!z) {
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 - (f4 * f3), 0.0f);
float f5 = this.size;
shapePath.lineTo(f2, f5 * f3, (f5 * f3) + f2, 0.0f);
shapePath.lineTo(f, 0.0f);
}
}
}