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

◆ IntersectsWith()

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

Definition at line 265 of file RectangleF.cs.

266 {
267 if (rect.X < X + Width && X < rect.X + rect.Width && rect.Y < Y + Height)
268 {
269 return Y < rect.Y + rect.Height;
270 }
271 return false;
272 }

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