Last active
September 29, 2020 12:18
-
-
Save eigenmannmartin/05bb291cf9141f392913ce9384047ae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Graphics; | |
namespace Study { | |
public class Drawing { | |
public static void Main(string[] args) { | |
Rectangle t = new Rectangle(); | |
t.leftBottom = new Point(2,2); | |
t.leftTop = new Point(2,6); | |
t.rightTop = new Point(6,6); | |
t.rightBottom = new Point(6,2); | |
Graphics.draw(t); | |
Rectangle s = new Rectangle(); | |
s.leftTop = new Point(11,5); | |
s.leftBottom = new Point(5,5); | |
s.rightBottom = new Point(5,9); | |
s.rightTop = new Point(11,9); | |
Graphics.draw(s); | |
} | |
}} | |
# Will the two drawn rectangles overlap? yes / no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment