two-dimensional and three-dimensional cartesian …...figure 7.9 coordinate axes after translation....

28
Two-dimensional and Three-dimensional Cartesian Coordinate Transformation

Upload: others

Post on 21-Mar-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Two-dimensional and Three-dimensional Cartesian Coordinate Transformation

Page 2: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 3: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 4: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Translation

x’ = x - tx

y’ = y - ty

Page 5: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Scaling

Page 6: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Rotation

x’ = x cosθ - y sinθ

y’ = x sinθ + y cosθ

clockwise:

Page 7: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 8: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 9: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 10: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 11: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Example for a given angle

Page 12: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 13: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Combined

Page 14: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Matrix Notation

R X

RXor

Page 15: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Matrix notation for calculations “stacks” the equations

Multiplication is from rows on the left, down columns on the right, and add

4 8 3 6 9 2

x y z[ ][ ].

is the same as

4x + 8y +3z 6x + 9y + 2z

Number of columns in first must equal rows in second

Page 16: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Multiplication an entire matrix by a constant (scalar) is the same as multiplying each element

a b c m n p[ ] 6a 6b 6c

6m 6n 6p[ ]6 =

Adding to matrices is just adding the corresponding rows (need equal number of rows)

4 8 3 6 9 2[ ] 2 1 2

0 1 0[ ] 6 9 5 6 10 2[ ]+ =

Page 17: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Matrix Notation

R X

RXor

Page 18: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Matrix Notation

becomes:

Page 19: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

In 3D we have three axes, hence three rotations, one around each axis

Page 20: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

Three Dimensional Transformation, X, Y, Z

Page 21: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

-

Page 22: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

X’ = RzX

-

Page 23: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 24: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

-

Page 25: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 26: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and

X’ = Rx Ry Rz X

x’ y’ z’

=[ ]Combining all three rotations

Page 27: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and
Page 28: Two-dimensional and Three-dimensional Cartesian …...Figure 7.9 Coordinate axes after translation. (tx & ty in x-y system) or in matrix shorthand X' = X —T where T is the ... and