Week 2 - Linear and Affine Transformations, Homogeneous and 3D Coordinates Flashcards

1
Q

What are linear transformations?

A

Transformations effected by a matrix product.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give 4 examples of linear transformations.

A

Rotation, scaling, shear, mirroring.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the matrix transformation for rotation?

A

cosθ -sin θ
sin θ cos θ

Where θ is the angle of rotation around the origin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the matrix transformation for scaling?

A

λ1 0
0 λ2

Where λ1 and λ2 are the scaling factors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is isotropic scaling?

A

Both x and y scaled by the same factor (equal entries on diagonal - λ1 = λ2).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is anisotropic scaling?

A

x and y scaled by the different factors (unequal entries on diagonal - λ1 =! λ2).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the matrix transformation for shear?

A

Either:
1 λ
0 1

Or:
1 0
µ 1

(One coordinate left unchanged!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the formula for the general transformation?

A

x’ = Mx + t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are 3 properties of affine transformations?

A

Map straight lines into straight lines.

Map parallel lines into parallel lines.

Comprise all combinations of scaling, rotations, shears and translations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an affine transformation?

A

Linear transformation + translation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why are homogeneous coordinates used?

A

To combine affine transformations without it getting too complicated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Give the homogeneous rotation matrix for 2D coordinates.

A

cosθ -sin θ 0
sin θ cos θ 0
0 0 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give the homogeneous scaling matrix for 2D coordinates.

A

λx 0 0
0 λy 0
0 0 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Give the homogeneous shear matrix for 2D coordinates.

A

1 λ 0
0 1 0
0 0 1

or

1 0 0
µ 1 0
0 0 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Give the homogeneous translatation matrix for 2D coordinates.

A

1 0 tx
0 1 ty
0 0 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 4 exceptions to “matrix multiplication is not commutative” in terms of translations?

A

Rotations in 2D commute with eachother (but not in 3D).

Translations commute with each other.

Scalings commute with each other.

Shears commute with each other.

17
Q

How do you rotate an object about a point?

A

Translate object back to the origin, T.

Rotate around the origin, R.

Translate back to original location, T^-1.

18
Q

How do you display the coordinates of a line segment?

A

Transform end points from local and world coordinates to display coordinates.

Draw line segment from joining these end points in display coordinates.

19
Q

How do you display the coordinates of a rectangle?

A

Transform corners from local and world coordinates to display coordinates.

Draw rectangle in display coordinates.

20
Q

How do you rotate by θ around the z-axis of a coordinate system (3D)?

A

cosθ -sin θ 0
sin θ cos θ 0
0 0 1

21
Q

How do you rotate by θ around the y-axis of a coordinate system (3D)?

A

cosθ 0 sin θ
0 1 0
-sin θ 0 cos θ

22
Q

How do you rotate by θ around the x-axis of a coordinate system (3D)?

A

1 0 0
0 cosθ -sin θ
0 sin θ cos θ

23
Q

What is the matrix for the inverse of the rotation matrix R?

A

R^T (the transpose).

24
Q

How do you rotate around an arbitrary axis?

A

Perform a first rotation to align v to one of the coordinate system’s axes (x, y or z).

Perform rotation around this axis.

Perform the inverse of step 1.