30 lines
834 B
Java
30 lines
834 B
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Rect;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class IVU 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 d = vdf.d(vdf2);
|
||
|
float f = d.c / vdf.c;
|
||
|
if (f > 1.0f) {
|
||
|
f = (float) Math.pow(1.0f / f, 1.1d);
|
||
|
}
|
||
|
float f2 = (vdf2.c / d.c) * (vdf2.b / d.b);
|
||
|
return f * (((1.0f / f2) / f2) / f2);
|
||
|
}
|
||
|
|
||
|
@Override // o.OtF
|
||
|
public final Rect Oy_(VDF vdf, VDF vdf2) {
|
||
|
VDF d = vdf.d(vdf2);
|
||
|
int i = (d.c - vdf2.c) / 2;
|
||
|
int i2 = (d.b - vdf2.b) / 2;
|
||
|
return new Rect(-i, -i2, d.c - i, d.b - i2);
|
||
|
}
|
||
|
}
|