package o;

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

    public V6(float f, float f2) {
        this.a = f;
        this.b = f2;
    }

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

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

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

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

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

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

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

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