













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Question and answers of game programming subject.
Typology: Assignments
1 / 21
This page cannot be seen from the preview
Don't miss anything!














1. Explain in detail the Cartesian xy-plane.
2. Write a short note on Theorem of Pythagoras in 2D.
6. Explain the following terms- a. Position Vectors b. Unit Vectors c. Cartesian Vector
7. How Dot product helps in Back Face Detection? OR What is back face detection problem? State and explain how dot product is used to calculate back face detection. (pdf pg 54)
and cos(90◦) = 0, all remaining terms collapse to zero. Bearing in mind that the magnitude of a unit vector is 1, we can write ||s|| · ||r|| cos(β) = ad + be + cf
9. Explain in detail Cross or Vector product with suitable example. //INCOMPLETE (pdf – pg 56) Vector product, which is also called the cross product because of the ‘×’ symbol used in its notation. It is based on the definition that two vectors r and s can be multiplied together to produce a third vector t: r × s = t where ||t|| = ||r|| · ||s|| sin(β), and β is the angle between r and s.
10. State the difference between dot product and cross product of vectors. Dot product or scalar product Cross product or vector product If the product of two vectors is a scalar quantity, the product is called scalar product or dot product. If the product of two vectors is a vector quantity then the product is called vector product or cross product. The dot product is defined by the relation: A. B = AB Cos θ The cross product is defined by the relation: A × B = AB Sin θ The scalar product obeys commutative law as A.B = B.A The vector or cross product does not obey commutative law A×B ≠ B×A If two vectors are perpendicular to each other then their scalar product is zero. A.B = 0 If two vectors are parallel to each other, their vector product is zero. A×B= 0 12. How does Dot product help in Light Intensity calculation? OR Explain how the dot product is useful in calculating lighting of an object. ( pg53 )
15. Explain 3D translation, 3D Scaling with suitable examples.
16. Write a short note on 3D rotation.
18. Write a short note on 2D transformations.
19. What is 3D transformation? State and explain scaling and reflection in 3D.
o
21. Write a short note on 2D rotation. - In rotation, we rotate the object at particular angle θ (theta) from its origin. - From the following figure, we can see that the point P(X, Y) is located at angle φ from the horizontal X coordinate with distance r from the origin. -
24. Describe cartesian xy plane and explain the concept of function graph.