Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IntersectsWith()

readonly bool System.Drawing.Rectangle.IntersectsWith ( Rectangle rect)
inline

Definition at line 257 of file Rectangle.cs.

258 {
259 if (rect.X < X + Width && X < rect.X + rect.Width && rect.Y < Y + Height)
260 {
261 return Y < rect.Y + rect.Height;
262 }
263 return false;
264 }

References System.Drawing.Rectangle.Height, System.Drawing.Rectangle.Width, System.Drawing.Rectangle.X, and System.Drawing.Rectangle.Y.