Rabbit-R1/android (non root)/java/sources/com/google/android/material/shape/TriangleEdgeTreatment.java
2024-05-21 17:08:36 -04:00

26 lines
875 B
Java

package com.google.android.material.shape;
/* 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, ShapePath shapePath) {
if (this.inside) {
shapePath.lineTo(f2 - (this.size * f3), 0.0f);
float f4 = this.size;
shapePath.lineTo(f2, f4 * f3, (f4 * f3) + f2, 0.0f);
shapePath.lineTo(f, 0.0f);
return;
}
float f5 = this.size;
shapePath.lineTo(f2 - (f5 * f3), 0.0f, f2, (-f5) * f3);
shapePath.lineTo(f2 + (this.size * f3), 0.0f, f, 0.0f);
}
}