package q;

/* JADX INFO: renamed from: q.p, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2793p extends AbstractC2798s {

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

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

    public C2793p(float f6, float f7) {
        this.f23401a = f6;
        this.f23402b = f7;
    }

    @Override // q.AbstractC2798s
    public final float a(int i6) {
        if (i6 == 0) {
            return this.f23401a;
        }
        if (i6 != 1) {
            return 0.0f;
        }
        return this.f23402b;
    }

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

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

    @Override // q.AbstractC2798s
    public final void d() {
        this.f23401a = 0.0f;
        this.f23402b = 0.0f;
    }

    @Override // q.AbstractC2798s
    public final void e(float f6, int i6) {
        if (i6 == 0) {
            this.f23401a = f6;
        } else {
            if (i6 != 1) {
                return;
            }
            this.f23402b = f6;
        }
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof C2793p)) {
            return false;
        }
        C2793p c2793p = (C2793p) obj;
        return c2793p.f23401a == this.f23401a && c2793p.f23402b == this.f23402b;
    }

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

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