package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class hi1 implements z9 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final float f12173a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final float f12174b;

    public hi1(float f10, float f11) {
        boolean z10 = false;
        if (f10 >= -90.0f && f10 <= 90.0f && f11 >= -180.0f && f11 <= 180.0f) {
            z10 = true;
        }
        ih1.e0("Invalid latitude or longitude", z10);
        this.f12173a = f10;
        this.f12174b = f11;
    }

    public final boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && hi1.class == obj.getClass()) {
            hi1 hi1Var = (hi1) obj;
            if (this.f12173a == hi1Var.f12173a && this.f12174b == hi1Var.f12174b) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Float.hashCode(this.f12174b) + ((Float.hashCode(this.f12173a) + 527) * 31);
    }

    public final String toString() {
        float f10 = this.f12173a;
        int length = String.valueOf(f10).length();
        float f11 = this.f12174b;
        StringBuilder sb = new StringBuilder(length + 26 + String.valueOf(f11).length());
        sb.append("xyz: latitude=");
        sb.append(f10);
        sb.append(", longitude=");
        sb.append(f11);
        return sb.toString();
    }
}
