From 442a49ad5a48d417345959b903ae6a6d32d55759 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Fri, 15 Apr 2022 15:51:30 -0500 Subject: Great C programming fun Excellent fundamentals and displine training, many tools and techniques exercises: gdb, emacs, valgrind, git --- 06_rect/rectangle_ans.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 06_rect/rectangle_ans.txt (limited to '06_rect/rectangle_ans.txt') diff --git a/06_rect/rectangle_ans.txt b/06_rect/rectangle_ans.txt new file mode 100644 index 0000000..0b1b88f --- /dev/null +++ b/06_rect/rectangle_ans.txt @@ -0,0 +1,20 @@ +r1 is (2,3) to (7,9) +r2 is (-1,-2) to (4,5) +r3 is (-2,-3) to (5,7) +r4 is (-4,7) to (0,9) +intersection(r1,r1): (2,3) to (7,9) +intersection(r1,r2): (2,3) to (4,5) +intersection(r1,r3): (2,3) to (5,7) +intersection(r1,r4): +intersection(r2,r1): (2,3) to (4,5) +intersection(r2,r2): (-1,-2) to (4,5) +intersection(r2,r3): (-1,-2) to (4,5) +intersection(r2,r4): +intersection(r3,r1): (2,3) to (5,7) +intersection(r3,r2): (-1,-2) to (4,5) +intersection(r3,r3): (-2,-3) to (5,7) +intersection(r3,r4): (-2,7) to (0,7) +intersection(r4,r1): +intersection(r4,r2): +intersection(r4,r3): (-2,7) to (0,7) +intersection(r4,r4): (-4,7) to (0,9) -- cgit v1.2.3