package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ed, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0107Ed implements InterfaceC2489t2 {
    public final float a;

    public C0107Ed(float f) {
        this.a = f;
    }

    @Override // o.InterfaceC2489t2
    public final int a(int i, int i2, EnumC1280gK enumC1280gK) {
        float f = (i2 - i) / 2.0f;
        EnumC1280gK enumC1280gK2 = EnumC1280gK.l;
        float f2 = this.a;
        if (enumC1280gK != enumC1280gK2) {
            f2 *= -1;
        }
        return Math.round((1 + f2) * f);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof C0107Ed) && Float.compare(this.a, ((C0107Ed) obj).a) == 0;
    }

    public final int hashCode() {
        return Float.hashCode(this.a);
    }

    public final String toString() {
        return AbstractC2462sn.l(new StringBuilder("Horizontal(bias="), this.a, ')');
    }
}
