package r1;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;

/* loaded from: classes.dex */
public final class i {

    /* renamed from: e, reason: collision with root package name */
    public static final a f34323e = new a(null);

    /* renamed from: f, reason: collision with root package name */
    private static final i f34324f = new i(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED);

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

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

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

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

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final i a() {
            return i.f34324f;
        }
    }

    public i(float f10, float f11, float f12, float f13) {
        this.f34325a = f10;
        this.f34326b = f11;
        this.f34327c = f12;
        this.f34328d = f13;
    }

    public static /* synthetic */ i d(i iVar, float f10, float f11, float f12, float f13, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            f10 = iVar.f34325a;
        }
        if ((i10 & 2) != 0) {
            f11 = iVar.f34326b;
        }
        if ((i10 & 4) != 0) {
            f12 = iVar.f34327c;
        }
        if ((i10 & 8) != 0) {
            f13 = iVar.f34328d;
        }
        return iVar.c(f10, f11, f12, f13);
    }

    public final boolean b(long j10) {
        return g.m(j10) >= this.f34325a && g.m(j10) < this.f34327c && g.n(j10) >= this.f34326b && g.n(j10) < this.f34328d;
    }

    public final i c(float f10, float f11, float f12, float f13) {
        return new i(f10, f11, f12, f13);
    }

    public final float e() {
        return this.f34328d;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof i)) {
            return false;
        }
        i iVar = (i) obj;
        return Float.compare(this.f34325a, iVar.f34325a) == 0 && Float.compare(this.f34326b, iVar.f34326b) == 0 && Float.compare(this.f34327c, iVar.f34327c) == 0 && Float.compare(this.f34328d, iVar.f34328d) == 0;
    }

    public final long f() {
        return h.a(this.f34327c, this.f34328d);
    }

    public final long g() {
        return h.a(this.f34325a + (n() / 2.0f), this.f34326b + (h() / 2.0f));
    }

    public final float h() {
        return this.f34328d - this.f34326b;
    }

    public int hashCode() {
        return (((((Float.hashCode(this.f34325a) * 31) + Float.hashCode(this.f34326b)) * 31) + Float.hashCode(this.f34327c)) * 31) + Float.hashCode(this.f34328d);
    }

    public final float i() {
        return this.f34325a;
    }

    public final float j() {
        return this.f34327c;
    }

    public final long k() {
        return n.a(n(), h());
    }

    public final float l() {
        return this.f34326b;
    }

    public final long m() {
        return h.a(this.f34325a, this.f34326b);
    }

    public final float n() {
        return this.f34327c - this.f34325a;
    }

    public final i o(float f10, float f11, float f12, float f13) {
        return new i(Math.max(this.f34325a, f10), Math.max(this.f34326b, f11), Math.min(this.f34327c, f12), Math.min(this.f34328d, f13));
    }

    public final i p(i iVar) {
        return new i(Math.max(this.f34325a, iVar.f34325a), Math.max(this.f34326b, iVar.f34326b), Math.min(this.f34327c, iVar.f34327c), Math.min(this.f34328d, iVar.f34328d));
    }

    public final boolean q() {
        return this.f34325a >= this.f34327c || this.f34326b >= this.f34328d;
    }

    public final boolean r(i iVar) {
        return this.f34327c > iVar.f34325a && iVar.f34327c > this.f34325a && this.f34328d > iVar.f34326b && iVar.f34328d > this.f34326b;
    }

    public final i s(float f10, float f11) {
        return new i(this.f34325a + f10, this.f34326b + f11, this.f34327c + f10, this.f34328d + f11);
    }

    public final i t(long j10) {
        return new i(this.f34325a + g.m(j10), this.f34326b + g.n(j10), this.f34327c + g.m(j10), this.f34328d + g.n(j10));
    }

    public String toString() {
        return "Rect.fromLTRB(" + c.a(this.f34325a, 1) + ", " + c.a(this.f34326b, 1) + ", " + c.a(this.f34327c, 1) + ", " + c.a(this.f34328d, 1) + ')';
    }
}
