Beispiel #1
0
 private float method_2(PsLineEndType A_0, PsLineEndSize A_1, PsLineEndSize A_2)
 {
     if (A_0 != 5)
     {
         return(0f);
     }
     if ((A_1 == null) && (A_2 == 2))
     {
         return(this.sprᲆ_1.ᜀ().ᜀ() * 2.5f);
     }
     return(this.sprᲆ_1.ᜀ().ᜀ());
 }
Beispiel #2
0
    private void method_1(PointF A_0, float A_1, PsLineEndSize A_2, PsLineEndSize A_3)
    {
        PsLineEndType type = this.method_3();
        sprᧂ          rᧂ   = new sprᧂ();
        ArrayList     list = new ArrayList();
        float         num3 = (this.spr⇻_0.ᜄ() <= 2.0) ? 2f : this.spr⇻_0.ᜄ();

        rᧂ.ᜀ(true);
        float width  = float_13[A_2];
        float height = float_13[A_3];

        switch (type)
        {
        case 1:
            list.Add(new spr៧(float_9));
            break;

        case 2:
            list.Add(new spr៧(float_10));
            break;

        case 3:
            list.Add(new spr៧(float_12));
            break;

        case 4:
        {
            spr⢩ r⢩ = new spr⢩();
            r⢩.ᜀ(new PointF(-1.5f, -1.5f));
            r⢩.ᜀ(new SizeF(3f, 3f));
            r⢩.ᜃ(0.0);
            r⢩.ᜂ(360.0);
            sprṋ[] sprṋArray = r⢩.ᜃ();
            for (int i = 0; i < sprṋArray.Length; i++)
            {
                sprᡉ rᡉ = new sprᡉ();
                rᡉ.ᜀ(sprṋArray[i]);
                list.Add(rᡉ);
            }
            break;
        }

        case 5:
        {
            spr៧ spr = new spr៧(float_11);
            list.Add(spr);
            rᧂ.ᜀ(false);
            num3 = this.sprᲆ_1.ᜀ().ᜀ();
            SizeF ef = sizeF_0[A_2][A_3];
            width  = ef.Width;
            height = ef.Height;
            break;
        }
        }
        if (list.Count != 0)
        {
            width  *= num3;
            height *= num3;
            spr➂ r➂ = new spr➂();
            r➂.ᜁ(width, height, MatrixOrder.Prepend);
            r➂.ᜀ(0f, this.method_2(type, A_2, A_3), MatrixOrder.Append);
            r➂.ᜀ(A_1, MatrixOrder.Append);
            r➂.ᜀ(A_0.X, A_0.Y, MatrixOrder.Append);
            for (int j = 0; j < list.Count; j++)
            {
                spr➘ r➘ = (spr➘)list[j];
                r➘.ᜀ(r➂);
                rᧂ.ᜁ((sprᮃ)r➘);
            }
            if (rᧂ.ᜁ())
            {
                this.sprᲆ_0.ᜁ(rᧂ);
            }
            else
            {
                this.sprᲆ_1.ᜁ(rᧂ);
            }
        }
    }
Beispiel #3
0
    public override void vmethod_0(spr៧ A_0)
    {
        float         num;
        int           num2;
        int           num3;
        PsLineEndSize size3;
        PsLineEndSize size4;
        PsLineEndType type  = this.method_3();
        PsLineEndSize index = this.method_5();
        PsLineEndSize size2 = this.method_4();

        switch (type)
        {
        case 1:
        case 2:
            num = (1.5f * this.spr⇻_0.ᜄ()) * float_13[size2];
            break;

        case 3:
        case 4:
            num = 0f;
            break;

        case 5:
        {
            SizeF ef = sizeF_0[index][size2];
            num = this.spr⇻_0.ᜄ() * ef.Height;
            if ((size2 != 2) || (index != null))
            {
                num *= 1.3f;
                break;
            }
            num *= 2.5f;
            break;
        }

        default:
            return;
        }
        if (this.bool_0)
        {
            num2  = 0;
            num3  = 1;
            size3 = this.spr⇻_0.ᜃ().ᜂ();
            size4 = this.spr⇻_0.ᜃ().ᜀ();
        }
        else
        {
            num2  = A_0.ᜀ().Count - 1;
            num3  = num2 - 1;
            size3 = this.spr⇻_0.ᜀ().ᜂ();
            size4 = this.spr⇻_0.ᜀ().ᜀ();
        }
        PointF tf  = (PointF)A_0.ᜀ()[num2];
        PointF tf2 = (PointF)A_0.ᜀ()[num3];

        if (num > 0f)
        {
            A_0.ᜀ()[num2] = smethod_1(tf, tf2, num);
        }
        PointF tf3  = new PointF(tf.X - tf2.X, tf.Y - tf2.Y);
        float  num6 = 0f;

        if ((tf3.X != 0f) || (tf3.Y != 0f))
        {
            float num4 = -tf3.Y;
            float num5 = num4 / ((float)Math.Sqrt((double)((tf3.X * tf3.X) + (tf3.Y * tf3.Y))));
            num6 = (float)spr⃘.ᜄ(Math.Acos((double)num5));
            if (tf3.X < 0f)
            {
                num6 = 360f - num6;
            }
        }
        this.method_1(tf, num6, size3, size4);
    }