package y;

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

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

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

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

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

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

    public o(float f10, float f11, float f12) {
        super(null);
        this.f51335a = f10;
        this.f51336b = f11;
        this.f51337c = f12;
        this.f51338d = 3;
    }

    @Override // y.q
    public float a(int i10) {
        return i10 != 0 ? i10 != 1 ? i10 != 2 ? BitmapDescriptorFactory.HUE_RED : this.f51337c : this.f51336b : this.f51335a;
    }

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

    @Override // y.q
    public void d() {
        this.f51335a = BitmapDescriptorFactory.HUE_RED;
        this.f51336b = BitmapDescriptorFactory.HUE_RED;
        this.f51337c = BitmapDescriptorFactory.HUE_RED;
    }

    @Override // y.q
    public void e(int i10, float f10) {
        if (i10 == 0) {
            this.f51335a = f10;
        } else if (i10 == 1) {
            this.f51336b = f10;
        } else {
            if (i10 != 2) {
                return;
            }
            this.f51337c = f10;
        }
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof o)) {
            return false;
        }
        o oVar = (o) obj;
        if (!(oVar.f51335a == this.f51335a)) {
            return false;
        }
        if (oVar.f51336b == this.f51336b) {
            return (oVar.f51337c > this.f51337c ? 1 : (oVar.f51337c == this.f51337c ? 0 : -1)) == 0;
        }
        return false;
    }

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

    public int hashCode() {
        return (((Float.hashCode(this.f51335a) * 31) + Float.hashCode(this.f51336b)) * 31) + Float.hashCode(this.f51337c);
    }

    public String toString() {
        return "AnimationVector3D: v1 = " + this.f51335a + ", v2 = " + this.f51336b + ", v3 = " + this.f51337c;
    }
}
