Professional Documents
Culture Documents
CG - Assignment 2
CG - Assignment 2
CG - Assignment 2
ASSIGNMENT NO. 2
MULTIPLE CHOICE QUESTIONS:
1. Which of the following is used to represent a transformation matrix in 2D?
a. Translation b. Scaling
c. Rotation d. All of the above
a. Translation b. Rotation
b. Scaling d. Shearing
a. The size of the object changes b. The shape of the object changes
c. The position of the object changes d. The orientation of the object changes
a. [1 0 0; 0 1 0; 0 0 1] b. [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1]
c. [1 0; 0 1; 0 0; 0 0] d. [1 0 0 0; 0 1 0 0; 0 0 1 0]
Page 1 of 2
7. What is the fourth component of a homogeneous coordinate vector?
a. 0 b. 1
c. -1 d. It can be any value
8. In homogeneous coordinates, what is the purpose of the third column of a 3x3 matrix?
c. To increase the size of the graphics display d. To reduce the time required for rendering
a. Vector b. Matrix
c. Scalar d. None of the above
A line drawing algorithm is a method for estimating a line segment on discrete graphical
media such as pixel-based screens and printers in computer graphics. Line sketching on
such media necessitates an approximation.
Page 2 of 2
Lines are rasterised in one colour using basic methods. Spatial anti-aliasing is a
sophisticated approach that allows for a better representation of numerous colour
gradations.
Page 3 of 2
6. Explain Composite Transformation?
Suppose we want to perform rotation about an arbitrary point, then we can perform it by the
sequence of three transformations
1. Translation
2. Rotation
3. Reverse Translation
Bresenham Line Drawing Algorithm is one of the popular computer graphics algorithms
used to overcome the drawback of the DDA (Digital Differential Analyzer) algorithm. The
Bresenham line drawing algorithm is rather slower than the DDA algorithm.
The Bresenham implements the Bresenham line drawing algorithm. This algorithm is
efficient because it involves three integer operations: addition, subtraction, and
multiplication. These three operations will be performed rapidly, so lines should be formed
quickly.
The Bresenham line drawing algorithm determines the points of the N-dimensional raster
selected to generate the close approximation to the straight line between the two coordinates
or points. In the Bresenham line drawing algorithm, the integer is only for addition,
subtraction, and multiplication.
The operation in the Bresenham line drawing algorithm is performed quickly so the line can
be generated quickly. Suppose the line equation is y = mx + c. If the slope(m) value is 1,
both the coordinate incremented, but if the slope value is less than 1, then the y coordinate
may or may not be incremented. The Bresenham line drawing algorithm is used where the
slope value is not equal to one.
Page 4 of 2
2. Explain Transformation in brief with their types
The purpose of using computers for drawing is to provide facility to user to view the object
from different angles, enlarging or reducing the scale or shape of object called as
Transformation.
Page 5 of 2