6 views

Uploaded by Subramanian Manivel

2d

- MatrixOperations.Excel2007
- Sap2000入門手冊
- Midas Civil Manual de Analisis
- 3D Geometry
- PaperA
- The Misfortunes of a Trio of Mathematicians
- Assignment C++
- BCEE 452-ENGR 6511-Ch 3
- Math in Programming
- CLT2
- Pset1 Introduction Module Questions
- 2. Projection of Points
- College Trigonometry Carl Stitz and Jeff Zeager, Ph.D's
- A, B, D Matrix
- Topic 7 Coordinates
- 32 Matla Brick
- MS 12
- comparing graphs - weebly
- comparing graphs - weebly
- Basic Exercise 1 (Presentacion Power Point Solidworks

You are on page 1of 14

Larry F. Hodges

(modified by Amos Johnson)

y-axis

rotate each of its vertices.

(x2,y2)

(x1,y1)

we observe:

B

A

(0,0)

x-axis

sin (A + B) = y2/r cos (A + B) = x2/r

sin A = y1/r

Larry F. Hodges

(modified by Amos Johnson)

cos A = x1/r

From the double angle formulas:

cos (A + B)= cosAcosB - sinAsinB

Substituting:

Therefore:

y2 = y1cosB + x1sinB

We have

x2 = x1cosB - y1sinB

y2 = x1sinB + y1cosB

P2 =

(x2)

(y2)

Larry F. Hodges

(modified by Amos Johnson)

P1

(sinB cosB) (y1)

3

Translations

Moving an object is called a translation. We translate a point by adding to

the x and y coordinates, respectively, the amount the point should be

shifted in the x and y directions. We translate an object by translating

each vertex in the object.

P2 = P 1 + T

Ty

Tx

P1 = ( x1 )

( y1 )

T = ( tx )

( ty )

P2 = (x1 + tx)

(y1 + ty)

Larry F. Hodges

(modified by Amos Johnson)

Scaling

Changing the size of an object is called a scale. We scale an object by

scaling the x and y coordinates of each vertex in the object.

P2 = S .P1

S = (sx 0)

(0 sy)

P1 = ( x1 )

( y1 )

P2 = (sxx1)

(syy1)

Larry F. Hodges

(modified by Amos Johnson)

Homogeneous Coordinates

Although the formulas we have shown are usually the most efficient way to

implement programs to do scales, rotations and translations, it is easier to use

matrix transformations to represent and manipulate them.

In order to represent a translation as a matrix operation we use 3 x 3 matrices and

pad our points to become 1 x 3 matrices.

cos -sin

R = sin

0

0

0

cos

1

Sx

S = 0

Sy

Tx

T = 0

Larry F. Hodges

(modified by Amos Johnson)

(x)

Point P = (y)

(1)

Ty

Given our three basic transformations we can create other transformations.

Scaling with a fixed point

A problem with the scale transformation is that it also moves the object

being scaled.

Scale a line between (2, 1) (4,1) to twice its length.

(2) = (4)

(2 0

0)

(1)

(1)

(0 1

0)

(1)

(1)

(0 0

1)

(2 0

(0 1

(0 0

0)

0)

1)

(4)

(1)

(1)

= (8)

(1)

(1)

Before

After

Larry F. Hodges

(modified by Amos Johnson)

10

If we scale a line between (0, 1) (2,1) to twice its length, the left-hand endpoint does

not move.

(2 0

(0 1

(0 0

0)

0)

1)

(2 0

(0 1

(0 0

0)

0)

1)

(0)

(1)

(1)

(2)

(1)

(1)

(0)

(1)

(1)

(0)

(1)

(1)

Before

After

10

(0,0) is known as a fixed point for the basic scaling transformation. We can

used composite transformations to create a scale transformation with

different fixed points.

Larry F. Hodges

(modified by Amos Johnson)

Fixed

Point

Scaling

Scale by 2 with fixed point = (2,1)

Scale by 2

Translate origin to point (2,1)

(1 0

(0 1

(0 0

2)

1)

1)

(2 0 -2)

(0 1 0)

(0 0 1)

(2 0

(0 1

(0 0

-2)

0)

1)

(2 0 0) (1 0 -2)

= (2 0 -2)

(0 1 0) (0 1 -1) (0 1 0)

(0 0 1) (0 0 1) (0 0 1)

=

(2)

(1)

(1)

=

(4)

(1)

(1)

Larry F. Hodges

(modified by Amos Johnson)

(2)

(1)

(1)

(6)

(1)

(1)

Before

After

10

Scale by 2 with fixed point = (3,1)

Translate the point (3,1) to the origin

Scale by 2

Translate origin to point (3,1)

(1 0 3)

(0 1 1)

(0 0 1)

(2 0 0) (1 0 -3) = (2 0 -3)

(0 1 0) (0 1 -1) (0 1 0)

(0 0 1) (0 0 1) (0 0 1)

(2 0 -3) (2)

=

(0 1 0) (1)

(0 0 1)

(1)

(1)

(1)

(1)

(2 0 -3)

=

(4)

(0 1 0)

(1)

(0 0 1)

(1)

(5)

(1)

(1)

Larry F. Hodges

(modified by Amos Johnson)

Before

After

10

10

Rotation of Degrees About Point (x,y)

Translate (x,y) to origin

Rotate

Translate origin to (x,y)

(x,y)

(1 0

(0 1

(0 0

x)

y)

1)

Larry F. Hodges

(modified by Amos Johnson)

(x,y)

(cos -sin -xcos + ysin + x )

(sin cos 0)(0 1 -y) = (sin cos -xsin - ycos + y )

(0

0

1)(0 0 1)

(0

0

1

)

You rotate the box by rotating each vertex.

11

Shears

Original Data

y Shear

x Shear

1 0 0

a 1 0

0 0 1

1

0

0

b

1

0

0

0

1

Larry F. Hodges

(modified by Amos Johnson)

12

Reflections

Reflection about the y-axis

-1

0

0

0

1

0

Larry F. Hodges

(modified by Amos Johnson)

0

0

1

1

0

0

0

-1

0

0

0

1

13

More Reflections

Reflection about the origin

-1

0

0

0

-1

0

Larry F. Hodges

(modified by Amos Johnson)

0

0

1

0

1

0

1

0

0

0

0

1

14

- MatrixOperations.Excel2007Uploaded byCar Ser
- Sap2000入門手冊Uploaded byboringeraser
- Midas Civil Manual de AnalisisUploaded bymgdario
- 3D GeometryUploaded bySajag Jain
- PaperAUploaded byArijit Singh
- The Misfortunes of a Trio of MathematiciansUploaded bytahach
- Assignment C++Uploaded byapi-3768158
- BCEE 452-ENGR 6511-Ch 3Uploaded byDaniel
- Math in ProgrammingUploaded byLeon Mills
- CLT2Uploaded byYagnik Kalariya
- Pset1 Introduction Module QuestionsUploaded byceleraman
- 2. Projection of PointsUploaded byjalaluddin khan
- College Trigonometry Carl Stitz and Jeff Zeager, Ph.D'sUploaded byJoshua DiCamillo
- A, B, D MatrixUploaded byAnkur Chelseafc
- Topic 7 CoordinatesUploaded byTK Ying
- 32 Matla BrickUploaded byAyesha Hameed
- MS 12Uploaded bySaurav Patel
- comparing graphs - weeblyUploaded byapi-264027994
- comparing graphs - weeblyUploaded byapi-264468775
- Basic Exercise 1 (Presentacion Power Point SolidworksUploaded bylayiro2
- Mid-term Test Question and Answer 2017Uploaded bysoon0618
- selected responceUploaded byapi-458193889
- MathsUploaded byNepolean Laithangbam
- Octave Plot TutorialUploaded byDaham
- Rubber Mount DatasheetUploaded byadithegrea83
- Take Home Exam SD2175-2013Uploaded byds_srinivas
- Appendices.pdfUploaded bycarndmc
- c07-proe-wf3Uploaded byprasenjitsayantan
- ErrataUploaded byNamal Wanninayake

- A Review on Basalt Fiber with manufacturing and testsUploaded bySubramanian Manivel
- syllabus R2013.pdfUploaded bylogeshboy007
- Operation ResearchUploaded byJames Konthou
- TWO MARKSUploaded bySubramanian Manivel
- R. Paneerselvam.pdfUploaded byAshok Kumar
- CP7111 Lab ManualUploaded bySubramanian Manivel
- Tamilnadu Govt Employees Salary hike 2017 G.O.ms.No.303, Dated 11th October 2017Uploaded byTamil GoodReturns
- ME6501 - Nov2016Uploaded bySubramanian Manivel
- ME-ED-FEM1Uploaded bySubramanian Manivel
- daily class test - manufacturing technologyUploaded bySubramanian Manivel
- FMUploaded bySubramanian Manivel
- ME2037_uwUploaded bySubramanian Manivel
- Writing Strategies of a research paperUploaded bySubramanian Manivel
- theoritical foundation in computer scienceUploaded bySubramanian Manivel
- funding_agencies.pdfUploaded bySubramanian Manivel
- Elsarticle TemplateUploaded bySubramanian Manivel
- manufacturing processesUploaded bySubramanian Manivel
- Manufacturing Technology i - IntroductionUploaded bySubramanian Manivel
- Funding AgenciesUploaded bymalini72
- 2 Dgeometrictransformations 130405095128 Phpapp02Uploaded bySubramanian Manivel
- manufacturing technology i notesUploaded bySubramanian Manivel
- 2 d TransformUploaded bySubramanian Manivel
- 2d_transformations.pptUploaded byJuhiRai
- powerplant engineering assignmentUploaded bySubramanian Manivel
- Free Verbal Reasoning Questions AnswersUploaded byRyan Williams
- Tribology in designUploaded bySubramanian Manivel
- Composite materials and mechanics question paperUploaded bySubramanian Manivel
- Moulding Machines, Furnces and Special Casting ProcessesUploaded bySubramanian Manivel

- day14 volume surface area projectUploaded byapi-341785011
- Menomonee Falls Express News 082413Uploaded byHometown Publications - Express News
- Biodegradable Testing Badger SunscreensUploaded byivan esteves
- OTWELL Resume v31 - Long VersionUploaded byChristopher E. Otwell
- Safety BoxUploaded byTivah Matsay
- Branch Accounts.docxUploaded byMadhura Khapekar
- Topographic Map of Long IslandUploaded byHistoricalMaps
- 14_plan.pdfUploaded bySuniel Chhetri
- Desertec's Plan for Saharan Sun to Power Europe Burns OutUploaded byAnonymous t0HdWfGbl
- Philips_Tv_Chassis_Mg2.1E_Service_ManualUploaded byAneesh Js
- Optical Emission Spectrometer Arl4460Uploaded byThulasi Ram
- resource.txtUploaded byRaymond A. Quisel Jr.
- PC1431 MasteringPhysics Assignment 8Uploaded bystpmoment
- Cs Gate Paper 09Uploaded byLabhamm Gupta
- Common Pitfalls in ThermodynamicsUploaded byAnonymous Njaf79fo
- File No 11 Abstracts of Project Phase i for Nba FileUploaded byVasanthLogarajL
- B_2009_043_12Uploaded byLeonam Dos Santos Guimaraes
- Nozzle thrust experimentUploaded byvidic971
- PhysicsUploaded byRakesh Shankar
- Column Interation DiagramUploaded byPremasiri Karunarathna
- MOTION to QUASHUploaded byCasey Ibasco
- year 5 unit 7Uploaded byskpp2009
- Datasheet Forcepoint Ngfw 2101Uploaded byDaniela Sabrina
- Advanced Astro Dashboards WebUploaded byzahed83
- On theUploaded byDatonK
- Characteristics of an EntrepreneurUploaded byLevi L. Binamira
- Zomato Case StudyUploaded bySharath Kumar
- Nickl-Weller Designing Healthcare ArchitectureUploaded byLem Panelo
- Taiichi Ohno, Norman Bodek-Toyota Production System_ Beyond Large-Scale Production-Productivity Press (1988)Uploaded byAgriniSriGambeeraGanapathy
- Boiling Assignment Part 1Uploaded byBrianRungen