package l1;

import c3.r;
import c3.s;
import c3.t;
import l1.c;

/* loaded from: classes.dex */
public final class d implements c {

    /* renamed from: b, reason: collision with root package name */
    private final float f27349b;

    /* renamed from: c, reason: collision with root package name */
    private final float f27350c;

    /* loaded from: classes.dex */
    public static final class a implements c.b {

        /* renamed from: a, reason: collision with root package name */
        private final float f27351a;

        public a(float f10) {
            this.f27351a = f10;
        }

        @Override // l1.c.b
        public int a(int i10, int i11, t tVar) {
            return Math.round(((i11 - i10) / 2.0f) * (1 + this.f27351a));
        }

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

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

        public String toString() {
            return "Horizontal(bias=" + this.f27351a + ')';
        }
    }

    public d(float f10, float f11) {
        this.f27349b = f10;
        this.f27350c = f11;
    }

    @Override // l1.c
    public long a(long j10, long j11, t tVar) {
        long a10 = s.a(r.g(j11) - r.g(j10), r.f(j11) - r.f(j10));
        float f10 = 1;
        return c3.o.a(Math.round((r.g(a10) / 2.0f) * (this.f27349b + f10)), Math.round((r.f(a10) / 2.0f) * (f10 + this.f27350c)));
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof d)) {
            return false;
        }
        d dVar = (d) obj;
        return Float.compare(this.f27349b, dVar.f27349b) == 0 && Float.compare(this.f27350c, dVar.f27350c) == 0;
    }

    public int hashCode() {
        return (Float.hashCode(this.f27349b) * 31) + Float.hashCode(this.f27350c);
    }

    public String toString() {
        return "BiasAbsoluteAlignment(horizontalBias=" + this.f27349b + ", verticalBias=" + this.f27350c + ')';
    }
}
