Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu đang bị lỗi
File tài liệu này hiện đang bị hỏng, chúng tôi đang cố gắng khắc phục.
Bài giải bài tập Đồ họa máy tính 02
Nội dung xem thử
Mô tả chi tiết
Faculty of Computer Science and Engineering
Department of Computer Science
Bài tập 2
1/
a)
// left top
setViewport(0, 320, 320, 640);
setCamera(0, 1, 0, 1);
drawFigure();
// left bottom
setViewport(0, 320, 0, 320);
setCamera(1, 0, 0, 1);
drawFigure();
// right bottom
setViewport(320, 640, 0, 320);
setCamera(0, 1, 0, 1);
drawFigure();
// right top
setViewport(320, 640, 320, 640);
setCamera(1, 0, 0, 1);
drawFigure();
b)
// left top
setViewport(0, 320, 320, 640);
setCamera(0, 1, 0, 1);
drawFigure();
// left bottom
setViewport(0, 320, 0, 320);
setCamera(1, 0, 0, 1);
drawFigure();
// right bottom
setViewport(320, 640, 0, 320);
setCamera(0, 1, 0, 1);
drawFigure();