31 lines
896 B
Java
31 lines
896 B
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Rect;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
|
||
|
/* renamed from: o.zjJ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17788zjJ extends OtF {
|
||
|
@Override // o.OtF
|
||
|
protected final float a(VDF vdf, VDF vdf2) {
|
||
|
if (vdf.c <= 0 || vdf.b <= 0) {
|
||
|
return BitmapDescriptorFactory.HUE_RED;
|
||
|
}
|
||
|
VDF c = vdf.c(vdf2);
|
||
|
float f = c.c / vdf.c;
|
||
|
if (f > 1.0f) {
|
||
|
f = (float) Math.pow(1.0f / f, 1.1d);
|
||
|
}
|
||
|
float f2 = (c.c / vdf2.c) + (c.b / vdf2.b);
|
||
|
return f * ((1.0f / f2) / f2);
|
||
|
}
|
||
|
|
||
|
@Override // o.OtF
|
||
|
public final Rect Oy_(VDF vdf, VDF vdf2) {
|
||
|
VDF c = vdf.c(vdf2);
|
||
|
int i = (c.c - vdf2.c) / 2;
|
||
|
int i2 = (c.b - vdf2.b) / 2;
|
||
|
return new Rect(-i, -i2, c.c - i, c.b - i2);
|
||
|
}
|
||
|
}
|