Professional Documents
Culture Documents
MTD203 Jan 2021 Toa
MTD203 Jan 2021 Toa
____________________________________________________________________________________
INSTRUCTIONS TO STUDENTS:
1. This Timed Online Assignment (TOA) contains FOUR (4) questions and comprises
SIX (6) pages (including cover page).
3. If you have any queries about a question, or believe there is an error in the question,
briefly explain your understanding and assumptions about that question before
attempting it.
4. You MUST submit your answers via Canvas (similar to TMA submission) at the
end time of this TOA (as stated on this cover page). The 15 minutes grace period as
shown on Canvas is strictly meant for technical issues encountered during
submission. Thereafter, you will not be able to submit your answers and you will be
considered as having withdrawn from the course. No appeal will be allowed.
5. You are to include the following particulars in your submission: TOA Course Code,
Your Name and SUSS PI No. Name your submission file as
TOACourseCode_FullName_StudentPI. Use underscore and NOT Space. Example:
TOAXYZ_RaphaelLee_T1923161 (omit D/O, S/O).
6. Your submission should consist of only one file and must not exceed 500MB in size.
The file must be a Microsoft Word file saved in .doc or .docx format. All answers
are to be typed except for codes, formulas, calculation workings, flowcharts and
graphs which can be handwritten. Handwritten codes, formulas, calculation
workings, flowcharts and graphs may be scanned or photographed and embedded in
the Word file provided it does not exceed the file size limit of 500MB. Please review
your submitted TOA work after uploading it into Canvas to make sure that any
handwritten work can be seen clearly.
8. The University takes plagiarism and collusion seriously, and your Turnitin report will
be examined thoroughly as part of the marking process.
Question 1
Discuss the operations and properties of vectors and matrices, including the geometrical
meaning of the operations.
(i) 7a
(10 marks)
(ii) Calculate the dot product for projQP and perpQP. Discuss the geometrical
meaning of the result.
(4 marks)
1 2 3
[6 4 5].
8 9 7
(10 marks)
Question 2
The vertices of a triangle are P0(10, 4, 7), P1(4, 16, 7) and P2(4, 6, 19). A ray starts from
S(1, 1, 1) and moves in the direction of V(1, 2, 3). Describe the intersection between the
ray and the triangle by completing the following steps.
(b) Calculate the point of intersection between the ray and the plane.
(6 marks)
(a) A triangle is defined by the coordinates P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7). The
triangle is rotated 30-degree counter-clockwise about the x-axis. Solve the
transformation operation to determine the new position of the triangle
(6 marks)
(b) The rotated triangle in (a) is next rotated 45-degree counter-clockwise about the
z-axis. Solve the transformation operation to determine the new position of the
triangle.
(6 marks)
(c) Instead of the rotations in (a) and (b), the original triangle in (a) at coordinate
P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7) is now rotated 30-degree clockwise about
the x-axis.
Next, the rotated triangle is then rotated 45-degree clockwise about the z-axis.
Solve the transformation operation to determine the final position of the triangle.
(8 marks)
(d) Explain how you can rotate the rotated triangle in part (b) to its original position
at P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7).
(5 marks)
Illustrate the Phong Reflection Model with the given information as follows:
The vertices of a lighted triangle are P0(1, 1, 1), P1(0, 2, 1) and P2(0, 0, 1)
The viewer is at the position (1, 5, 4)
The white point light is at the position (1, 0, 5) with intensity Ii = 0.5
White ambient intensity Ia = 0.1
kambient = 0.7, kdiffuse = 0.9 and kspecular is 0.6.
Shininess coefficient n = 10
(c) Find the unit vector (𝐿̂) from P0 to the point light
(3 marks)
(e) Compute the intensity at the vertex P0 using the Phong Reflection Model.
(6 marks)
𝑃∙𝑄
𝑝𝑟𝑜𝑗𝑄 𝑃 = 𝑄
‖𝑄‖2
𝑝𝑒𝑟𝑝𝑄 𝑃 = 𝑃 − 𝑝𝑟𝑜𝑗𝑃 𝑄
2) Rotation matrix
1 0 0
Rx(A) = [0 𝑐𝑜𝑠𝐴 −𝑠𝑖𝑛𝐴]
0 𝑠𝑖𝑛𝐴 𝑐𝑜𝑠𝐴
𝑐𝑜𝑠𝐵 0 𝑠𝑖𝑛𝐵
Ry(B) = [ 0 1 0 ]
−𝑠𝑖𝑛𝐵 0 𝑐𝑜𝑠𝐵
𝑐𝑜𝑠𝐶 −𝑠𝑖𝑛𝐶 0
Rz(C) = [ 𝑠𝑖𝑛𝐶 𝑐𝑜𝑠𝐶 0]
0 0 1
̂ .𝐿̂)𝑁
𝑅̂ = 2(𝑁 ̂ - 𝐿̂