mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
30 lines
1 KiB
Java
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);
|
|
}
|
|
}
|
|
}
|