1) Apply Cohen-Sutherland algorithm and comment on following lines in a window with bottom left corner (5,4) and top rig
Posted: Sat Nov 27, 2021 2:29 pm
1) Apply Cohen-Sutherland algorithm and comment on following lines in a window with bottom left corner (5,4) and top right corner (10,8). a) line AB with A(4,8) and B(6,11) b) line AC with A(4,8) and C(8,3) c) line XY with X(6,6) and Y(8,7) d) line XZ with X(6,6) and Z(9,6) 2) A rectangle with length 4 unit and breadth 3 unit have bottom left corner at (2, 3) a) Scale 2unit x direction and 1 unit y direction and then translate lunit x direction and 2 unit y x direction b) Move lunit x direction and 2 unit y direction and then scale lunit x direction and 2 unit y direction. Draw initial and final position of rectangle in both cases.