package y;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;

/* loaded from: classes.dex */
public final class p extends q {

    /* renamed from: a, reason: collision with root package name */
    private float f51348a;

    /* renamed from: b, reason: collision with root package name */
    private float f51349b;

    /* renamed from: c, reason: collision with root package name */
    private float f51350c;

    /* renamed from: d, reason: collision with root package name */
    private float f51351d;

    /* renamed from: e, reason: collision with root package name */
    private final int f51352e;

    public p(float f10, float f11, float f12, float f13) {
        super(null);
        this.f51348a = f10;
        this.f51349b = f11;
        this.f51350c = f12;
        this.f51351d = f13;
        this.f51352e = 4;
    }

    @Override // y.q
    public float a(int i10) {
        return i10 != 0 ? i10 != 1 ? i10 != 2 ? i10 != 3 ? BitmapDescriptorFactory.HUE_RED : this.f51351d : this.f51350c : this.f51349b : this.f51348a;
    }

    @Override // y.q
    public int b() {
        return this.f51352e;
    }

    @Override // y.q
    public void d() {
        this.f51348a = BitmapDescriptorFactory.HUE_RED;
        this.f51349b = BitmapDescriptorFactory.HUE_RED;
        this.f51350c = BitmapDescriptorFactory.HUE_RED;
        this.f51351d = BitmapDescriptorFactory.HUE_RED;
    }

    @Override // y.q
    public void e(int i10, float f10) {
        if (i10 == 0) {
            this.f51348a = f10;
            return;
        }
        if (i10 == 1) {
            this.f51349b = f10;
        } else if (i10 == 2) {
            this.f51350c = f10;
        } else {
            if (i10 != 3) {
                return;
            }
            this.f51351d = f10;
        }
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof p)) {
            return false;
        }
        p pVar = (p) obj;
        if (!(pVar.f51348a == this.f51348a)) {
            return false;
        }
        if (!(pVar.f51349b == this.f51349b)) {
            return false;
        }
        if (pVar.f51350c == this.f51350c) {
            return (pVar.f51351d > this.f51351d ? 1 : (pVar.f51351d == this.f51351d ? 0 : -1)) == 0;
        }
        return false;
    }

    public final float f() {
        return this.f51348a;
    }

    public final float g() {
        return this.f51349b;
    }

    public final float h() {
        return this.f51350c;
    }

    public int hashCode() {
        return (((((Float.hashCode(this.f51348a) * 31) + Float.hashCode(this.f51349b)) * 31) + Float.hashCode(this.f51350c)) * 31) + Float.hashCode(this.f51351d);
    }

    public final float i() {
        return this.f51351d;
    }

    @Override // y.q
    /* renamed from: j, reason: merged with bridge method [inline-methods] */
    public p c() {
        return new p(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED);
    }

    public String toString() {
        return "AnimationVector4D: v1 = " + this.f51348a + ", v2 = " + this.f51349b + ", v3 = " + this.f51350c + ", v4 = " + this.f51351d;
    }
}
