36 lines
877 B
Java
36 lines
877 B
Java
|
package o;
|
||
|
|
||
|
import com.github.mikephil.charting.charts.PieChart;
|
||
|
import com.github.mikephil.charting.charts.PieRadarChartBase;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class pNb<T extends PieRadarChartBase> implements RNy {
|
||
|
protected T b;
|
||
|
protected List<UAQ> e = new ArrayList();
|
||
|
|
||
|
protected abstract UAQ a(int i, float f, float f2);
|
||
|
|
||
|
public pNb(T t) {
|
||
|
this.b = t;
|
||
|
}
|
||
|
|
||
|
@Override // o.RNy
|
||
|
public final UAQ c(float f, float f2) {
|
||
|
if (this.b.a(f, f2) > this.b.p()) {
|
||
|
return null;
|
||
|
}
|
||
|
float e = this.b.e(f, f2);
|
||
|
T t = this.b;
|
||
|
if (t instanceof PieChart) {
|
||
|
e /= t.a().a;
|
||
|
}
|
||
|
int c = this.b.c(e);
|
||
|
if (c < 0 || c >= this.b.g().b().r()) {
|
||
|
return null;
|
||
|
}
|
||
|
return a(c, f, f2);
|
||
|
}
|
||
|
}
|