package q;

/* JADX INFO: loaded from: classes.dex */
public final class r extends AbstractC2798s {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public float f23415c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public float f23416d;

    public r(float f6, float f7, float f8, float f9) {
        this.f23413a = f6;
        this.f23414b = f7;
        this.f23415c = f8;
        this.f23416d = f9;
    }

    @Override // q.AbstractC2798s
    public final float a(int i6) {
        if (i6 == 0) {
            return this.f23413a;
        }
        if (i6 == 1) {
            return this.f23414b;
        }
        if (i6 == 2) {
            return this.f23415c;
        }
        if (i6 != 3) {
            return 0.0f;
        }
        return this.f23416d;
    }

    @Override // q.AbstractC2798s
    public final int b() {
        return 4;
    }

    @Override // q.AbstractC2798s
    public final AbstractC2798s c() {
        return new r(0.0f, 0.0f, 0.0f, 0.0f);
    }

    @Override // q.AbstractC2798s
    public final void d() {
        this.f23413a = 0.0f;
        this.f23414b = 0.0f;
        this.f23415c = 0.0f;
        this.f23416d = 0.0f;
    }

    @Override // q.AbstractC2798s
    public final void e(float f6, int i6) {
        if (i6 == 0) {
            this.f23413a = f6;
            return;
        }
        if (i6 == 1) {
            this.f23414b = f6;
        } else if (i6 == 2) {
            this.f23415c = f6;
        } else {
            if (i6 != 3) {
                return;
            }
            this.f23416d = f6;
        }
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof r)) {
            return false;
        }
        r rVar = (r) obj;
        return rVar.f23413a == this.f23413a && rVar.f23414b == this.f23414b && rVar.f23415c == this.f23415c && rVar.f23416d == this.f23416d;
    }

    public final int hashCode() {
        return Float.hashCode(this.f23416d) + com.google.android.recaptcha.internal.a.b(this.f23415c, com.google.android.recaptcha.internal.a.b(this.f23414b, Float.hashCode(this.f23413a) * 31, 31), 31);
    }

    public final String toString() {
        return "AnimationVector4D: v1 = " + this.f23413a + ", v2 = " + this.f23414b + ", v3 = " + this.f23415c + ", v4 = " + this.f23416d;
    }
}
