コード例 #1
0
    internal static PointF smethod_3(spr᣼[] A_0, bool A_1, PointF[] A_2, PointF A_3)
    {
        float  num  = spr⃸.ᜀ(A_0);
        PointF tf   = A_1 ? A_0[A_0.Length - 1].ᜀ() : A_0[0].ᜁ();
        float  num2 = spr⃸.ᜁ(A_3, tf);
        float  num3 = num;

        if (num2 <= num3)
        {
            return(A_3);
        }
        Class447 class2 = new Class447(A_2[0], A_2[1]);

        if (A_3.X < (A_1 ? A_2[0].X : A_2[1].X))
        {
            num3 *= -1f;
        }
        PointF[] tfArray2 = new PointF[] { PointF.Empty };
        class2.method_7(A_1 ? A_2[0] : A_2[1], num3, tfArray2);
        return(tfArray2[0]);
    }
コード例 #2
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]);
    }