mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
26 lines
875 B
Java
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);
|
|
}
|
|
}
|