Siêu thị PDFTải ngay đi em, trời tối mất

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

Bài giải bài tập Đồ họa máy tính 02
MIỄN PHÍ
Số trang
8
Kích thước
173.1 KB
Định dạng
PDF
Lượt xem
1191

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();

Tải ngay đi em, còn do dự, trời tối mất!