Student: hhwang Assignment: 2 Grader: Charlie ************************************************ Bresenham: program runs, buggy (55): 55 correct implementation of Bresenham (20): 20 no floats and divides (20): 20 extra credit (5): 3 ---------------------------------------------- total (100): 98 Cohen-Sutherland: program runs, buggy (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): 2 ---------------------------------------------- total (100): 97 Comments: ---------------------------------------------- Bresenham: Good job! The code could be simpler, because you didn't need the flag to determine which pixel to set. You could just keep the correct x and y and loop with a plusx and plusy that will either add 1 or subtract 1 depending on the slope of the line. Cohen-Sutherland: Good job in saving a lot of duplicate code by looping. *************************************************