package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class X6 extends Y6 {
    public float a;
    public float b;
    public float c;
    public float d;

    public X6(float f, float f2, float f3, float f4) {
        this.a = f;
        this.b = f2;
        this.c = f3;
        this.d = f4;
    }

    @Override // o.Y6
    public final float a(int i) {
        if (i == 0) {
            return this.a;
        }
        if (i == 1) {
            return this.b;
        }
        if (i == 2) {
            return this.c;
        }
        if (i != 3) {
            return 0.0f;
        }
        return this.d;
    }

    @Override // o.Y6
    public final int b() {
        return 4;
    }

    @Override // o.Y6
    public final Y6 c() {
        return new X6(0.0f, 0.0f, 0.0f, 0.0f);
    }

    @Override // o.Y6
    public final void d() {
        this.a = 0.0f;
        this.b = 0.0f;
        this.c = 0.0f;
        this.d = 0.0f;
    }

    @Override // o.Y6
    public final void e(int i, float f) {
        if (i == 0) {
            this.a = f;
            return;
        }
        if (i == 1) {
            this.b = f;
        } else if (i == 2) {
            this.c = f;
        } else {
            if (i != 3) {
                return;
            }
            this.d = f;
        }
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof X6)) {
            return false;
        }
        X6 x6 = (X6) obj;
        return x6.a == this.a && x6.b == this.b && x6.c == this.c && x6.d == this.d;
    }

    public final int hashCode() {
        return Float.hashCode(this.d) + AbstractC0126Ew.d(this.c, AbstractC0126Ew.d(this.b, Float.hashCode(this.a) * 31, 31), 31);
    }

    public final String toString() {
        return "AnimationVector4D: v1 = " + this.a + ", v2 = " + this.b + ", v3 = " + this.c + ", v4 = " + this.d;
    }
}
