package v;

/* JADX INFO: loaded from: classes.dex */
public final class a {

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public static final double[] f33539s = new double[91];

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public double[] f33540a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public double f33542c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public double f33543d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public double f33544e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public double f33545f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public double f33546g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public double f33547h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public double f33548i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public double f33549j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public double f33550k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public double f33551l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public double f33552m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public double f33553n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public double f33554o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public double f33555p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public boolean f33556q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public boolean f33557r;

    public final double a() {
        double d10 = this.f33549j * this.f33555p;
        double dHypot = this.f33553n / Math.hypot(d10, (-this.f33550k) * this.f33554o);
        if (this.f33556q) {
            d10 = -d10;
        }
        return d10 * dHypot;
    }

    public final double b() {
        double d10 = this.f33549j * this.f33555p;
        double d11 = (-this.f33550k) * this.f33554o;
        double dHypot = this.f33553n / Math.hypot(d10, d11);
        return this.f33556q ? (-d11) * dHypot : d11 * dHypot;
    }

    public final double c(double d10) {
        double d11 = (d10 - this.f33542c) * this.f33548i;
        double d12 = this.f33545f;
        double d13 = this.f33544e;
        return ((d12 - d13) * d11) + d13;
    }

    public final double d(double d10) {
        double d11 = (d10 - this.f33542c) * this.f33548i;
        double d12 = this.f33547h;
        double d13 = this.f33546g;
        return ((d12 - d13) * d11) + d13;
    }

    public final double e() {
        return (this.f33549j * this.f33554o) + this.f33551l;
    }

    public final double f() {
        return (this.f33550k * this.f33555p) + this.f33552m;
    }

    public final void g(double d10) {
        double d11 = (this.f33556q ? this.f33543d - d10 : d10 - this.f33542c) * this.f33548i;
        double d12 = 0.0d;
        if (d11 > 0.0d) {
            d12 = 1.0d;
            if (d11 < 1.0d) {
                double[] dArr = this.f33540a;
                double length = d11 * ((double) (dArr.length - 1));
                int i10 = (int) length;
                double d13 = dArr[i10];
                d12 = ((dArr[i10 + 1] - d13) * (length - ((double) i10))) + d13;
            }
        }
        double d14 = d12 * 1.5707963267948966d;
        this.f33554o = Math.sin(d14);
        this.f33555p = Math.cos(d14);
    }
}
