Consider the rectangle with vertices (0, 0), (0, 2), (3, 0), (3, 2) . There is scaling of 2 towards x -axis and 3 towards y -axis. The new cordinates of the rectangle are
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. (0, 0), (6, 0), (0, 6), (6, 6)
Explanation
Multiply x by 2 and y by 3: (0,0) → (0,0), (0,2) → (0,6), (3,0) → (6,0), (3,2) → (6,6).
More Programming Languages and Computer Graphics questions
- Which of the following transforms in 2 dimension is used to resize a 2-dimensional object?
- Given int arr[3][4][2] = {{{2,4},{7,8},{3,4},{5,6}}, {{7,6},{3,4},{5,3},{2,3}}, {{8,9},{7,2},{3,4},{5,1}}}; which of the following can be u…
- Which of the following is correct using the constructor? A. string s1; B. string s2 (s1); C. string s3{7}; D. string s4{'a'}; E. string s5{…
- Match List I with List II
- Which of the following is wrong about the data types?
- If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the Q following is correct?