package o;

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

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

    @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 0.0f;
        }
        return this.c;
    }

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

    @Override // o.Y6
    public final Y6 c() {
        return new W6(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;
    }

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

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

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

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