示例#1
0
 internal Class726(spr᣼ A_0)
 {
     this.spr᣼_0   = A_0;
     this.pointF_0 = new PointF(smethod_0(A_0, true), smethod_0(A_0, false));
     this.pointF_1 = new PointF(smethod_1(A_0, true), smethod_1(A_0, false));
     this.pointF_2 = A_0.ᜁ();
 }
示例#2
0
    private static bool smethod_9(spr᣼[] A_0, spr᣼[] A_1, ArrayList A_2, ArrayList A_3, bool A_4)
    {
        // This item is obfuscated and can not be translated.
        bool flag  = false;
        int  index = A_4 ? (A_0.Length - 1) : 0;

        while (A_4)
        {
Label_0015:
            if (index <= -1)
            {
                return(flag);
            }
            spr᣼ r᣼ = A_0[index];
            A_3.Clear();
            Class318 class2 = Class318.smethod_0();
            r᣼   = smethod_10(r᣼, A_1, A_3, A_4, class2);
            flag = class2.method_0();
            A_2.Add(r᣼);
            if (flag)
            {
                return(flag);
            }
            if (A_4)
            {
                index--;
            }
            else
            {
                index++;
                continue;
            }
        }
        goto Label_0015;
    }
示例#3
0
    private static spr᣼ smethod_11(spr᣼ A_0, spr᣼ A_1, ArrayList A_2, bool A_3, Class318 A_4)
    {
        float minValue = float.MinValue;
        int   index    = 0;

        for (int i = 0; i < A_4.method_4().Length; i++)
        {
            if ((A_3 && (A_4.method_4()[i] > minValue)) || (!A_3 && (A_4.method_4()[i] <= minValue)))
            {
                minValue = A_4.method_4()[i];
                index    = i;
            }
        }
        float num4 = A_4.method_4()[index];
        float num5 = A_4.method_6()[index];

        spr᣼[] r᣼Array  = smethod_22(A_0, num4);
        spr᣼[] r᣼Array2 = smethod_22(A_1, num5);
        if (!A_3)
        {
            A_0 = r᣼Array[0];
            A_1 = (r᣼Array2.Length > 1) ? r᣼Array2[1] : r᣼Array2[0];
        }
        else
        {
            A_0 = (r᣼Array.Length > 1) ? r᣼Array[1] : r᣼Array[0];
            A_1 = r᣼Array2[0];
        }
        A_2.Add(A_1);
        return(A_0);
    }
示例#4
0
    private static spr᣼ smethod_10(spr᣼ A_0, spr᣼[] A_1, ArrayList A_2, bool A_3, Class318 A_4)
    {
        // This item is obfuscated and can not be translated.
        int index = !A_3 ? (A_1.Length - 1) : 0;

        while (!A_3)
        {
Label_0012:
            if (index <= -1)
            {
                return(A_0);
            }
            spr᣼     r᣼     = A_1[index];
            Class318 class2 = smethod_13(A_0, r᣼);
            if (class2.method_0())
            {
                A_0 = smethod_11(A_0, r᣼, A_2, A_3, class2);
                A_4.method_1(true);
                return(A_0);
            }
            A_2.Add(r᣼);
            if (!A_3)
            {
                index--;
            }
            else
            {
                index++;
                continue;
            }
        }
        goto Label_0012;
    }
示例#5
0
    private static float smethod_1(spr᣼ A_0, bool A_1)
    {
        float[] numArray = smethod_2(A_0, A_1);
        float   num      = numArray[0];
        float   num2     = numArray[1];

        return((-2f * num) + (2f * num2));
    }
示例#6
0
    private static Class1122 smethod_18(PointF A_0, PointF A_1, spr᣼ A_2)
    {
        Class726 class2 = new Class726(A_2);
        bool     flag   = spr⃸.ᜀ(A_1.Y, A_0.Y);

        double[] numArray = smethod_19(A_0, A_1, class2, flag);
        return(smethod_20(A_0, A_1, class2, numArray, flag));
    }
示例#7
0
    private static float smethod_0(spr᣼ A_0, bool A_1)
    {
        float[] numArray = smethod_2(A_0, A_1);
        float   num      = numArray[0];
        float   num2     = numArray[1];
        float   num3     = numArray[2];

        return((num - (2f * num2)) + num3);
    }
示例#8
0
    private static spr᣼ smethod_23(PointF A_0, PointF A_1, PointF A_2)
    {
        spr᣼ r᣼ = new spr᣼();

        r᣼.ᜀ(A_0);
        r᣼.ᜁ(A_1);
        r᣼.ᜂ(A_2);
        return(r᣼);
    }
示例#9
0
    private static Class318 smethod_13(spr᣼ A_0, spr᣼ A_1)
    {
        ArrayList list   = new ArrayList();
        sprᳯ      rᳯ     = new sprᳯ();
        sprᳯ      rᳯ2    = new sprᳯ();
        Class726  class2 = new Class726(A_0);
        Class726  class3 = new Class726(A_1);

        smethod_15(class2, class3, list, rᳯ);
        smethod_14(class2, class3, rᳯ, rᳯ2);
        if (rᳯ.ᜆ() == 0)
        {
            return(Class318.smethod_0());
        }
        return(new Class318(true, rᳯ.ᜆ(), rᳯ2.(), rᳯ.(), (PointF[])list.ToArray(typeof(PointF))));
    }
示例#10
0
    private static void smethod_2(spr៧ A_0, spr᣼[] A_1, bool A_2, PointF[] A_3)
    {
        spr᣼     r᣼     = A_2 ? A_1[A_1.Length - 1] : A_1[0];
        Class447 class3 = new Class447(A_3[0], A_3[1]);
        Class447 class2 = A_2 ? new Class447(r᣼.ᜂ(), r᣼.ᜀ()) : new Class447(r᣼.ᜂ(), r᣼.ᜁ());

        PointF[] tfArray2 = new PointF[] { PointF.Empty };
        Class447.smethod_1(class3, class2, tfArray2);
        tfArray2[0] = smethod_3(A_1, A_2, A_3, tfArray2[0]);
        if (A_2)
        {
            A_0.ᜀ()[0] = tfArray2[0];
        }
        else
        {
            A_0.ᜀ()[A_0.ᜀ().Count - 1] = tfArray2[0];
        }
    }
示例#11
0
 private static spr᣼ smethod_5(bool A_0, spr᣼ A_1, Class1122 A_2, spr៧ A_3)
 {
     if (A_0)
     {
         A_3.ᜀ()[0] = A_2.method_8()[0];
     }
     else
     {
         A_3.ᜀ()[A_3.ᜀ().Count - 1] = A_2.method_8()[0];
     }
     spr᣼[] r᣼Array = smethod_22(A_1, A_2.method_10()[0]);
     if (A_0)
     {
         A_1 = r᣼Array[0];
         return(A_1);
     }
     A_1 = (r᣼Array.Length > 1) ? r᣼Array[1] : r᣼Array[0];
     return(A_1);
 }
示例#12
0
 private static spr᣼[] smethod_22(spr᣼ A_0, float A_1)
 {
     if ((A_1 < 0f) || (A_1 > 1f))
     {
         return(null);
     }
     if ((A_1 != 0f) && (A_1 != 1f))
     {
         Class447 class2 = new Class447(A_0.ᜁ(), A_0.ᜂ());
         Class447 class3 = new Class447(A_0.ᜂ(), A_0.ᜀ());
         float    num    = spr⃸.ᜁ(A_0.ᜁ(), A_0.ᜂ());
         float    num2   = spr⃸.ᜁ(A_0.ᜂ(), A_0.ᜀ());
         PointF   tf     = smethod_24(class2, A_0, A_1, num, true);
         PointF   tf2    = smethod_24(class3, A_0, A_1, num2, false);
         PointF   tf3    = new Class726(A_0).method_0(A_1);
         spr᣼     r᣼     = smethod_23(A_0.ᜁ(), tf, tf3);
         spr᣼     r᣼2    = smethod_23(tf3, tf2, A_0.ᜀ());
         return(new spr᣼[] { r᣼, r᣼2 });
     }
     return(new spr᣼[] { A_0 });
 }
示例#13
0
    private static PointF smethod_24(Class447 A_0, spr᣼ A_1, float A_2, float A_3, bool A_4)
    {
        bool flag;

        if ((A_0.method_9() == 0f) && !A_0.method_13())
        {
            flag = A_4 ? (A_1.ᜂ().X > A_1.ᜁ().X) : (A_1.ᜀ().X > A_1.ᜂ().X);
        }
        else
        {
            flag = A_4 ? (A_1.ᜂ().Y > A_1.ᜁ().Y) : (A_1.ᜀ().Y > A_1.ᜂ().Y);
        }
        PointF[] tfArray2 = new PointF[] { PointF.Empty };
        float    num      = -1f;

        if (flag)
        {
            num = 1f;
        }
        A_0.method_7(A_4 ? A_1.ᜁ() : A_1.ᜂ(), (num * A_2) * A_3, tfArray2);
        return(tfArray2[0]);
    }
示例#14
0
    private static bool smethod_4(spr៧ A_0, spr᣼[] A_1, bool A_2, PointF[] A_3, ArrayList A_4)
    {
        // This item is obfuscated and can not be translated.
        bool flag  = false;
        int  index = A_2 ? 0 : (A_1.Length - 1);

        while (A_2)
        {
Label_0016:
            if (index >= A_1.Length)
            {
                return(flag);
            }
            spr᣼      r᣼     = A_1[index];
            Class1122 class2 = smethod_18(A_3[0], A_3[1], r᣼);
            if (class2.method_0())
            {
                r᣼   = smethod_5(A_2, r᣼, class2, A_0);
                flag = true;
            }
            A_4.Add(r᣼);
            if (flag)
            {
                return(flag);
            }
            if (A_2)
            {
                index++;
            }
            else
            {
                index--;
                continue;
            }
        }
        goto Label_0016;
    }
示例#15
0
 private static float[] smethod_2(spr᣼ A_0, bool A_1)
 {
     return(new float[] { (A_1 ? A_0.ᜁ().X : A_0.ᜁ().Y), (A_1 ? A_0.ᜂ().X : A_0.ᜂ().Y), (A_1 ? A_0.ᜀ().X : A_0.ᜀ().Y) });
 }