40 lines
968 B
Java
40 lines
968 B
Java
package c.o.a.q;
|
|
|
|
import android.graphics.PointF;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.VisibleForTesting;
|
|
/* compiled from: GestureFinder */
|
|
public abstract class c {
|
|
public boolean a;
|
|
@VisibleForTesting
|
|
public a b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public PointF[] f1502c;
|
|
|
|
/* compiled from: GestureFinder */
|
|
public interface a {
|
|
}
|
|
|
|
public c(@NonNull a aVar, int i) {
|
|
this.f1502c = new PointF[i];
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
this.f1502c[i2] = new PointF(0.0f, 0.0f);
|
|
}
|
|
}
|
|
|
|
public final float a(float f, float f2, float f3) {
|
|
float b = b(f, f2, f3);
|
|
if (b < f2) {
|
|
b = f2;
|
|
}
|
|
if (b > f3) {
|
|
b = f3;
|
|
}
|
|
float f4 = ((f3 - f2) / 50.0f) / 2.0f;
|
|
return (b < f - f4 || b > f4 + f) ? b : f;
|
|
}
|
|
|
|
public abstract float b(float f, float f2, float f3);
|
|
}
|