Пример #1
0
 public c000040 m000252()
 {
     c000040 c = new c000040();
     c.f000066 = this.f000066;
     c.f000067 = this.f000067;
     c.f000069 = this.f000069;
     return c;
 }
Пример #2
0
 private void m0000b0()
 {
     Vector2 vector;
     Vector2 vector2;
     float num = this.f00005b[0].m00009f().m000282().m00003a();
     float num2 = 1f;
     if (this.f00000a)
     {
         vector = new Vector2(-num, 384f);
         vector2 = new Vector2(1360f + num, 384f);
     }
     else
     {
         vector = new Vector2(1360f + num, 384f);
         vector2 = new Vector2(-num, 384f);
         num2 = -1f;
     }
     c000040 c2 = new c000040();
     c2.f000066 = new Vector3(c000029.m000035(vector), 0f);
     c2.f000067 = new Vector3(num2 * this.f000033, 0f, 0f);
     this.f00008e.Add(c2);
     c000040 c3 = new c000040();
     c3.f000066 = new Vector3(c000029.m000035(vector2), 0f);
     c3.f000067 = new Vector3(num2 * this.f000033, 0f, 0f);
     c3.f000069 = Vector2.Distance(vector, vector2) / this.f000033;
     this.f00008e.Add(c3);
     this.m000047();
 }
Пример #3
0
 private void m00028f(Vector3 p0)
 {
     c000040 c = new c000040();
     c.f000066 = p0;
     if (this.f00008e.get_Count() == 0)
     {
         c.f000069 = 0.0;
     }
     else
     {
         float num = Vector3.Distance(this.f00008e[this.f00008e.get_Count() - 1].f000066, p0);
         c.f000069 = this.f00008e[this.f00008e.get_Count() - 1].f000069 + (num / this.f000033);
     }
     this.f00008e.Add(c);
 }
Пример #4
0
 private void m0000af()
 {
     double num = c000057.m000086(this.f000069);
     c000040 c = this.f00008e.m0002aa(num);
     int index = this.f00008e.IndexOf(c);
     if (index < 0)
     {
         index = this.f00008e.get_Count() - 1;
     }
     while ((this.f00008e.get_Count() - index) <= 3)
     {
         c000040 c2 = null;
         if (this.f00008e.get_Count() > 0)
         {
             c2 = this.f00008e[this.f00008e.get_Count() - 1];
         }
         else
         {
             Vector2 vector;
             f0000b1.NextDouble();
             c2 = new c000040();
             if (this.f00005b.Count <= 1)
             {
                 vector = this.f00005b[0].m00009f().m000026();
             }
             else
             {
                 int num3 = f0000b1.Next(f000241.Length);
                 vector = f000241[num3];
                 c000029 c3 = this.f00005b[0].m00009f().m000282();
                 Vector2 vector2 = this.m000022() + new Vector2(c3.m00003a(), c3.m000038());
                 float y = vector2.Y;
                 if (vector.Y == 384f)
                 {
                     vector.Y += f0000b1.Next(-100, 100);
                     y = vector2.X;
                     if (vector.X < 680f)
                     {
                         vector.X -= y;
                     }
                     else
                     {
                         vector.X += y;
                     }
                 }
                 else if (vector.Y < 384f)
                 {
                     vector.Y -= y;
                     vector.X += f0000b1.Next(-100, 100);
                 }
                 else
                 {
                     vector.Y += y;
                     vector.X += f0000b1.Next(-100, 100);
                 }
             }
             float num5 = (float) ((f0000b1.Next(0, 360) * 3.1415926535897931) / 180.0);
             vector = c000029.m000035(vector);
             Vector2 vector3 = (Vector2) (c000029.m000040(num5) * this.f000033);
             c2.f000066 = new Vector3(vector, 0f);
             c2.f000069 = 0.0;
             c2.f000068 = new Vector3(vector3.X, -vector3.Y, 0f);
             this.f00008e.Add(c2);
             this.m000047();
         }
         float num6 = this.f000033 * ((1f - this.f0000a4) + ((((float) f0000b1.NextDouble()) * this.f0000a4) * 2f));
         float num7 = this.f000035 * ((1f - this.f0000a4) + ((((float) f0000b1.NextDouble()) * this.f0000a4) * 2f));
         float num8 = num6 * num7;
         float num9 = (-this.f000037 + ((2f * this.m000028()) * ((float) f0000b1.NextDouble()))) * 3.141593f;
         float num10 = 0f;
         if (this.f00008e.get_Count() >= 2)
         {
             Vector3 vector4 = this.f00008e.m0002a9(c2.f000069 - 0.10000000149011612);
             num10 = 0f;
             if (vector4.Length() > 0f)
             {
                 Vector2 vector7 = new Vector2(vector4.X, vector4.Y);
                 num10 = (float) Math.Asin((double) (vector4.Y / vector7.Length()));
             }
             if (vector4.X < 0f)
             {
                 num10 = 3.141593f - num10;
             }
         }
         else
         {
             num10 = (float) Math.Asin((double) (c2.f000066.Y / c2.f000066.Length()));
             if (c2.f000066.X < 0f)
             {
                 num10 += 3.141593f;
             }
             num10 = 3.141593f - num10;
         }
         float num11 = num10 + num9;
         c000040 c4 = new c000040();
         c4.f000066 = c2.f000066 + new Vector3(num8 * ((float) Math.Cos((double) num11)), num8 * ((float) Math.Sin((double) num11)), 0f);
         Vector2 vector5 = new Vector2(c4.f000066.X, c4.f000066.Y);
         if (!this.m000008() && !this.m0002ed(vector5))
         {
             Vector2 vector6 = new Vector2(c2.f000066.X, c2.f000066.Y);
             if (this.m0002ec(vector6))
             {
                 continue;
             }
             num10 = 0f;
             if (c2.f000066.Length() > 0f)
             {
                 num10 = (float) Math.Asin((double) (c2.f000066.Y / c2.f000066.Length()));
             }
             if (c2.f000066.X < 0f)
             {
                 num10 = 3.141593f - num10;
             }
             num10 += 3.141593f;
             num11 = num10;
             c4.f000066 = c2.f000066 + new Vector3(num8 * ((float) Math.Cos((double) num11)), num8 * ((float) Math.Sin((double) num11)), 0f);
         }
         c4.f000069 = c2.f000069 + num7;
         this.f00008e.Add(c4);
         if (this.f00008e.get_Count() >= 2)
         {
             this.f00008e.m000003();
             this.f00008e.m000001();
         }
     }
 }