Example #1
0
 // Token: 0x06002CC2 RID: 11458
 // RVA: 0x00121E7C File Offset: 0x0012007C
 public static bool smethod_2(double double_0, RectangleF rectangleF_0, RectangleF rectangleF_1, Vector2 vector2_0)
 {
     double num2;
     double num;
     double num4;
     double num3;
     double num6;
     double num5;
     double num8;
     double num7;
     if (double_0 == 0.0)
     {
         num = (num2 = (double)rectangleF_0.X) + (double)rectangleF_0.Width;
         num3 = (num4 = (double)rectangleF_0.Y) + (double)rectangleF_0.Height;
         num5 = (num6 = (double)rectangleF_1.X) + (double)rectangleF_1.Width;
         num7 = (num8 = (double)rectangleF_1.Y) + (double)rectangleF_1.Height;
         return num2 <= num5 && num6 <= num && num4 <= num7 && num8 <= num3;
     }
     double num9 = Math.Cos(double_0);
     double num10 = Math.Sin(double_0);
     bool flag = num9 > 0.0;
     bool flag2 = num10 > 0.0;
     double num11 = 0.5 * (double)rectangleF_0.Width;
     double num12 = 0.5 * (double)rectangleF_0.Height;
     double num13 = (double)(rectangleF_0.X + vector2_0.X);
     double num14 = (double)(rectangleF_0.Y + vector2_0.Y);
     double num15 = num9 * num11;
     double num16 = num10 * num11;
     double num17 = num9 * num12;
     double num18 = num10 * num12;
     num5 = (num6 = (double)rectangleF_1.X - num13) + (double)rectangleF_1.Width;
     num7 = (num8 = (double)rectangleF_1.Y - num14) + (double)rectangleF_1.Height;
     if (flag)
     {
         if (flag2)
         {
             num2 = -(num = num15 + num18);
             num4 = -(num3 = num17 + num16);
         }
         else
         {
             num2 = -(num = num15 - num18);
             num4 = -(num3 = num17 - num16);
         }
     }
     else if (flag2)
     {
         num = -(num2 = num15 - num18);
         num3 = -(num4 = num17 - num16);
     }
     else
     {
         num = -(num2 = num15 + num18);
         num3 = -(num4 = num17 + num16);
     }
     if (num2 > num5 || num6 > num || num4 > num7 || num8 > num3)
     {
         return false;
     }
     if (flag)
     {
         if (flag2)
         {
             return num9 * num5 + num10 * num7 >= -num11 && num9 * num6 + num10 * num8 <= num11 && num9 * num7 - num10 * num6 >= -num12 && num9 * num8 - num10 * num5 <= num12;
         }
         return num9 * num5 + num10 * num8 >= -num11 && num9 * num6 + num10 * num7 <= num11 && num9 * num7 - num10 * num5 >= -num12 && num9 * num8 - num10 * num6 <= num12;
     }
     else
     {
         if (flag2)
         {
             return num9 * num6 + num10 * num7 >= -num11 && num9 * num5 + num10 * num8 <= num11 && num9 * num8 - num10 * num6 >= -num12 && num9 * num7 - num10 * num5 <= num12;
         }
         return num9 * num6 + num10 * num8 >= -num11 && num9 * num5 + num10 * num7 <= num11 && num9 * num8 - num10 * num5 >= -num12 && num9 * num7 - num10 * num6 <= num12;
     }
 }
Example #2
0
 // Token: 0x06002CBF RID: 11455
 // RVA: 0x00121DD0 File Offset: 0x0011FFD0
 public static RectangleF smethod_1(RectangleF rectangleF_0, float float_0, float float_1)
 {
     RectangleF result = rectangleF_0;
     result.method_5(float_0, float_1);
     return result;
 }
Example #3
0
 // Token: 0x06002CBA RID: 11450
 // RVA: 0x00121BB0 File Offset: 0x0011FDB0
 public bool Contains(RectangleF rectangleF_0)
 {
     return this.X <= rectangleF_0.X && rectangleF_0.X + rectangleF_0.Width <= this.X + this.Width && this.Y <= rectangleF_0.Y && rectangleF_0.Y + rectangleF_0.Height <= this.Y + this.Height;
 }
Example #4
0
 // Token: 0x06002CC1 RID: 11457
 // RVA: 0x00021E66 File Offset: 0x00020066
 static RectangleF()
 {
     RectangleF.Empty = default(RectangleF);
 }
Example #5
0
 // Token: 0x06002DF2 RID: 11762
 // RVA: 0x00129F10 File Offset: 0x00128110
 internal Class110(RectangleF rectangleF_1, Vector2 vector2_6, bool bool_11, float float_6, Enum98 enum98_1)
     : base(Class115.class115_0)
 {
     this.enum98_0 = enum98_1;
     Class802.smethod_34(Enum96.const_8, new Delegate46(this.method_10), enum98_1, this.enum97_0);
     Class802.smethod_34(Enum96.const_6, new Delegate46(this.method_11), enum98_1, this.enum97_0);
     Class802.smethod_34(Enum96.const_3, new Delegate46(this.method_21), enum98_1, this.enum97_0);
     Class802.smethod_34(Enum96.const_2, new Delegate46(this.method_20), enum98_1, this.enum97_0);
     Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_13), enum98_1, this.enum97_0);
     Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_12), enum98_1, this.enum97_0);
     this.class911_0 = new Class911(bool_11);
     this.class911_1 = new Class911(bool_11);
     this.class531_0 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 1.1f, true, Color.get_White(), null);
     this.class531_0.bool_1 = true;
     this.class531_0.class746_1 = new Class746(Color.get_White(), Color.get_YellowGreen(), 0, 0);
     this.class531_0.bool_11 = true;
     this.class531_0.float_2 = 1.6f;
     this.class911_0.Add(this.class531_0);
     this.method_2(float_6);
     this.method_14(vector2_6);
     this.method_16(rectangleF_1);
 }