Skip to content

Instantly share code, notes, and snippets.

@eigenmannmartin
Last active September 29, 2020 12:18
Show Gist options
  • Save eigenmannmartin/05bb291cf9141f392913ce9384047ae3 to your computer and use it in GitHub Desktop.
Save eigenmannmartin/05bb291cf9141f392913ce9384047ae3 to your computer and use it in GitHub Desktop.
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