ADD week 5

This commit is contained in:
2025-03-31 16:33:42 +02:00
parent 86f265f22d
commit bf645048e6
4927 changed files with 544053 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package com.google.android.material.shape;
/* loaded from: classes.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);
}
}