The following points (x, to xs) sketch a hexagon as shown in Fig. 1: x₁= (0, 1), x2 = (1, 1), x3 =(2, 2), x4 = (1, 3), xs =(0, 3), x6 = (-1, 3), x7=(-2, 2), x8 = (-1, 1). Suppose we want to rotate the hexagon counter-clockwise +150 degree. Plot both the original and the rotated hexagon on the same graph with different colours for -4 ≤x≤4 and -4 Sy≤4. Provide proper legend. Plot only the data points. Note: any conditional statements (if-else statement, for and while loops) are NOT allowed to use for this question 3 2 1 O O O O O O O O

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
In 2-D geometric transformations, some of the common transformations including rotation, scaling, shearing,
reflection, and orthogonal projection. A 2 x 2 rotation matrix (R) that is used to perform a rotation in
Euclidean space is given by:
EECS 1560
The matrix R rotates points or 2 x 1 vectors in the xy-Cartesian plane counter-clockwise through an angle 0.
For example, the new coordinates for the point (xo, yo) after the transformation is:
4
3
2
1
0
-1
-2
-3
X new
The following points (x₁ to xg) sketch a hexagon as shown in Fig. 1: x₁ = (0, 1), x2 = (1, 1), x3 = (2, 2), X4 = (1,
3), x5 = (0, 3), x6 = (-1,3), x7= (-2, 2), xs = (-1, 1). Suppose we want to rotate the hexagon counter-clockwise
+150 degree.
-4
y new.
Plot both the original and the rotated hexagon on the same graph with different colours for -4≤x≤4 and -4
Sy≤ 4. Provide proper legend. Plot only the data points.
-4
Note: any conditional statements (if-else statement, for and while loops) are NOT allowed to use for this
question
R=
-3
= R
R(x) = (
(1
O
-2
cos
sin
Introduction to Computing for Mathematics and Statistics
cos
O
cos
sin0x₂
sinᎾ cose yo
()
Yo
O
-1
sin 0
O
O
0
Fig. 1
O
O
1
O
3| Page
2
3
4
Transcribed Image Text:In 2-D geometric transformations, some of the common transformations including rotation, scaling, shearing, reflection, and orthogonal projection. A 2 x 2 rotation matrix (R) that is used to perform a rotation in Euclidean space is given by: EECS 1560 The matrix R rotates points or 2 x 1 vectors in the xy-Cartesian plane counter-clockwise through an angle 0. For example, the new coordinates for the point (xo, yo) after the transformation is: 4 3 2 1 0 -1 -2 -3 X new The following points (x₁ to xg) sketch a hexagon as shown in Fig. 1: x₁ = (0, 1), x2 = (1, 1), x3 = (2, 2), X4 = (1, 3), x5 = (0, 3), x6 = (-1,3), x7= (-2, 2), xs = (-1, 1). Suppose we want to rotate the hexagon counter-clockwise +150 degree. -4 y new. Plot both the original and the rotated hexagon on the same graph with different colours for -4≤x≤4 and -4 Sy≤ 4. Provide proper legend. Plot only the data points. -4 Note: any conditional statements (if-else statement, for and while loops) are NOT allowed to use for this question R= -3 = R R(x) = ( (1 O -2 cos sin Introduction to Computing for Mathematics and Statistics cos O cos sin0x₂ sinᎾ cose yo () Yo O -1 sin 0 O O 0 Fig. 1 O O 1 O 3| Page 2 3 4
Expert Solution
steps

Step by step

Solved in 5 steps with 15 images

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,