29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
package o;
|
|
|
|
import android.graphics.RectF;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.view.View;
|
|
import com.google.android.material.tabs.TabLayout;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class qEr extends VTa {
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.VTa
|
|
public final void LR_(TabLayout tabLayout, View view, View view2, float f, Drawable drawable) {
|
|
float cos;
|
|
float f2;
|
|
RectF LP_ = LP_(tabLayout, view);
|
|
if (LP_.left < LP_(tabLayout, view2).left) {
|
|
double d = (f * 3.141592653589793d) / 2.0d;
|
|
f2 = (float) (1.0d - Math.cos(d));
|
|
cos = (float) Math.sin(d);
|
|
} else {
|
|
double d2 = (f * 3.141592653589793d) / 2.0d;
|
|
float sin = (float) Math.sin(d2);
|
|
cos = (float) (1.0d - Math.cos(d2));
|
|
f2 = sin;
|
|
}
|
|
drawable.setBounds(((int) LP_.left) + Math.round(f2 * (((int) r7.left) - r10)), drawable.getBounds().top, ((int) LP_.right) + Math.round(cos * (((int) r7.right) - r8)), drawable.getBounds().bottom);
|
|
}
|
|
}
|