コード例 #1
0
    private static void smethod_16(Class726 A_0, Class726 A_1, double[] A_2, ArrayList A_3, sprᳯ A_4)
    {
        PointF tf  = A_0.method_3();
        PointF tf2 = A_0.method_4();
        PointF tf3 = A_0.method_5();
        PointF tf4 = A_1.method_3();
        PointF tf5 = A_1.method_4();
        PointF tf6 = A_1.method_5();

        for (int i = 0; i < A_2.Length; i++)
        {
            double num3 = A_2[i];
            if ((num3 >= 0.0) && (num3 <= 1.0))
            {
                double[] numArray  = new Class317((double)-tf.X, (double)-tf2.X, ((-tf3.X + tf6.X) + (num3 * tf5.X)) + ((num3 * num3) * tf4.X)).method_0();
                double[] numArray2 = new Class317((double)-tf.Y, (double)-tf2.Y, ((-tf3.Y + tf6.Y) + (num3 * tf5.Y)) + ((num3 * num3) * tf4.Y)).method_0();
                if ((numArray.Length > 0) && (numArray2.Length > 0))
                {
                    for (int j = 0; j < numArray.Length; j++)
                    {
                        if (smethod_17(A_1, numArray[j], numArray2, A_3, A_4, num3))
                        {
                            break;
                        }
                    }
                }
            }
        }
    }
コード例 #2
0
    private static double[] smethod_19(PointF A_0, PointF A_1, Class726 A_2, bool A_3)
    {
        if (A_3)
        {
            return(new Class317((double)A_2.method_3().Y, (double)A_2.method_4().Y, (double)(A_2.method_5().Y - A_0.Y)).method_0());
        }
        float num = (A_1.X - A_0.X) / (A_1.Y - A_0.Y);

        return(new Class317((double)((num * A_2.method_3().Y) - A_2.method_3().X), (double)((num * A_2.method_4().Y) - A_2.method_4().X), (double)((((num * A_2.method_5().Y) - (num * A_0.Y)) + A_0.X) - A_2.method_5().X)).method_0());
    }
コード例 #3
0
    private static void smethod_15(Class726 A_0, Class726 A_1, ArrayList A_2, sprᳯ A_3)
    {
        PointF tf   = A_0.method_3();
        PointF tf2  = A_0.method_4();
        PointF tf3  = A_0.method_5();
        PointF tf4  = A_1.method_3();
        PointF tf5  = A_1.method_4();
        PointF tf6  = A_1.method_5();
        double num  = (tf.X * tf2.Y) - (tf2.X * tf.Y);
        double num2 = (tf4.X * tf2.Y) - (tf2.X * tf4.Y);
        double num3 = (tf5.X * tf2.Y) - (tf2.X * tf5.Y);
        double num4 = (tf2.X * (tf3.Y - tf6.Y)) + (tf2.Y * (-tf3.X + tf6.X));
        double num5 = (tf4.X * tf.Y) - (tf.X * tf4.Y);
        double num6 = (tf5.X * tf.Y) - (tf.X * tf5.Y);
        double num7 = (tf.X * (tf3.Y - tf6.Y)) + (tf.Y * (-tf3.X + tf6.X));

        double[] numArray = new Class317(-num5 * num5, (-2.0 * num5) * num6, ((num * num2) - (num6 * num6)) - ((2.0 * num5) * num7), (num * num3) - ((2.0 * num6) * num7), (num * num4) - (num7 * num7)).method_0();
        smethod_16(A_0, A_1, numArray, A_2, A_3);
    }
コード例 #4
0
    private static bool smethod_17(Class726 A_0, double A_1, double[] A_2, ArrayList A_3, sprᳯ A_4, double A_5)
    {
        if ((0.0 > A_1) || (A_1 > 1.0))
        {
            return(false);
        }
        PointF tf  = A_0.method_3();
        PointF tf2 = A_0.method_4();
        PointF tf3 = A_0.method_5();

        for (int i = 0; i < A_2.Length; i++)
        {
            if (Math.Abs((double)(A_1 - A_2[i])) < 0.0001)
            {
                float x = ((float)(((tf.X * A_5) * A_5) + (tf2.X * A_5))) + tf3.X;
                float y = ((float)(((tf.Y * A_5) * A_5) + (tf2.Y * A_5))) + tf3.Y;
                A_3.Add(new PointF(x, y));
                A_4.ᜄ((float)A_5);
                return(true);
            }
        }
        return(false);
    }
コード例 #5
0
    private static void smethod_14(Class726 A_0, Class726 A_1, sprᳯ A_2, sprᳯ A_3)
    {
        PointF tf  = A_0.method_3();
        PointF tf2 = A_0.method_4();
        PointF tf3 = A_0.method_5();
        PointF tf4 = A_1.method_3();
        PointF tf5 = A_1.method_4();
        PointF tf6 = A_1.method_5();

        for (int i = 0; i < A_2.ᜆ(); i++)
        {
            float num4 = A_2.ᜃ(i);
            foreach (float num3 in new Class317((double)-tf.X, (double)-tf2.X, (double)(((-tf3.X + tf6.X) + (tf5.X * num4)) + ((tf4.X * num4) * num4))).method_0())
            {
                if ((num3 >= 0f) && (num3 <= 1f))
                {
                    goto Label_00B5;
                }
            }
            continue;
Label_00B5:
            A_3.ᜄ(num3);
        }
    }