public bool Intersects(Rectanglei other) { return((X < other.X + other.Width) && (X + Width > other.X) && (Y < other.Y + other.Height) && (Y + Height > other.Y)); }
public Rectangle(Rectanglei rect) { X = rect.X; Y = rect.Y; Width = rect.Width; Height = rect.Height; }
public bool Intersects(Rectanglei other) { var otherf = new Rectangle(other); return(Intersects(otherf)); }