CSC assign4 - (1 Point1.x= f point0.x Point1.y= f...

This preview shows page 1 - 4 out of 4 pages.

(1) Point1.x= f * point0.x; Point1.y= f * point0.y; (2) Line1.point0= scale_point(line0.point0, f) ; Line1.point1= scale_point(line0.point1, f) ; (3) Point1.x=cos(a) * point0.x-sin(a) * point0.y ; Point1.y=sin(a) * point0.x+cos(a) * point0.y ; (4) Line1.point0=rotate_point(line0.point0, a ) ; Line1.point1=rotate_point(line0.point1, a ); (5) Top_left.point0.x= -250 ; Top_left.point0.y= 0 ; Top_left.point1.x= 0 ; Top_left.point1.y= 250 ; Print_line(top_ left);
(6) Top_right.point0.x= 250 ; Top_right.point0.y= 0; Top_right.point1.x= 0 ; Top_right.point1.y= 250 ; Print_line(top_right); (7) Bottom_right.point0.x= 250; Bottom_right.point0.y= 0 ; Bottom_right.point1.x= 0 ; Bottom_right.point1.y= -250 ; Print_line(bottom_right); (8) Bottom_left.point0.x= 0 ; Bottom_left.point0.y= -250 ; Bottom_left.point1.x= -250 ; Bottom_left.point1.y= 0 ; Print_line(bottom_left); (9) top_left = scale_line(top_left, 0.90); top_left = rotate_line(top_left, M_PI/8);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture