Student: yanhao Assignment: 2 Grader: Damian ************************************************ Bresenham: program runs (55): 55 correct implementation of Bresenham (20): 20 no floats and divides (20): 20 extra credit (5): 3 ---------------------------------------------- total (100): 100 Cohen-Sutherland: program runs (55): 55 inside case correct (10): 10 outside case correct (10): 10 one clip correct (10): 10 two clips correct (10): 10 extra credit (5): 0 ---------------------------------------------- total (100): 95 Comments: ---------------------------------------------- Bresenham: Good job implementing the algorithm. Your code, though, looks a little bit long. You could probably shorten it considerably by taking a look at the special cases you listed out and combining them. Cohen-Sutherland: Overall a nice job at implementing it. However, I don't know about the auxiliary classes. After all, line clipping is something we're going to be wanting to do a hundred times a second -- the faster and slimmer this code is, the better, and creating auxiliary classes just so you can swap your points is probably not a worthwhile action. *************************************************