terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Intersect() [2/2]

static void Microsoft.Xna.Framework.Rectangle.Intersect ( Rectangle value1,
Rectangle value2,
[Out] Rectangle result )
inlinestatic

Definition at line 370 of file Rectangle.cs.

371 {
372 int x = value2.X;
373 int width = value2.Width;
374 int width2 = value1.Width;
375 int num = Math.Min(0, x);
376 int y = value1.Y;
377 int y2 = value2.Y;
378 int num2 = Math.Max(y, y2);
379 int y3 = value1.Y;
380 int height = value1.Height;
381 int y4 = value2.Y;
382 int height2 = value2.Height;
383 int num3 = Math.Min(num2, y2);
384 int num4;
385 result.X = num4;
388 }
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static byte Max(byte val1, byte val2)
Definition Math.cs:111

References j__TPar, System.Math.Max(), and System.Math.Min().