lec 4 - 2D transformations Flashcards
How are points represented?
Either in absolute position, relative to origin in Cartesian coordinates or polar coordinates.
What do vectors represent?
relative displacement
What do geometric transformations involve?
General geometric transformations concern object points rather than transformation of the entire coordinate frame,
They involve translations, where x0 = x + xt and y0 = y + yt and linear transformations v0 = Mv (where v0 is a vector and M is a matrix) such as scaling, shear, rotation, reflection.
Why are translations and rotations difficult to combine?
Unfortunately, translation is treated differently (via addition) from scaling and rotation (via multiplication).This means translations and rotations cannot be combined easily.
What are rigid body transformations?
Transformations that preserve distance : Rotation, translation, and reflection. That is, if two points are a certain distance apart, they will still be the same distance apart after undergoing one of these transformations (or indeed any combination of them).
Why do we use the homogeneous coordinate system?
to be able to treat all three transformations (rotation, translation and scaling) in a consistent way, so that they can be combined easily i.e. using the same GPU unit to simplify the pipeline
How do homogeneous coordinates work?
Homogeneous coordinates introduces a third dummy coordinate w, represented as (x. y, w). You imagine a third dimension z or (x/z, y/z), where a ray from the origin to point (x, y, z) in three-dimensions pierces the plane at z = 1.
What are the benefits of using homogeneous coordinates?
This paradoxically suggests that there is some ideal point (x, y, 0).
They allow for many different homogeneous coordinate representations of the same point, e.g. (2, 3, 6) is the same as (4, 6, 12), etc.
How do you homogenize?
In homogeneous coordinates the third dimension is often named w or (wx, wy, w) where w ≠ 0. You homogenize by dividing by w to get (x, y, 1).
How does using homogeneous coordinates aid the translation operation?
The additional (redundant) dimension w allows translation to become linear and allows the translation to be written as a matrix product rather than a sum.
What are affine transformations?
An affine transformation preserves
- collinearity between points (ie. three points which lie on a line continue to be collinear after the transformation), and
- ratios of distances between any two points.
What are examples of affine transformations?
translation, rotation, scaling and shear are all affine transformations
How can shears be useful?
many useful transforms can be made by appropriate combinations of shears this can have theoretical and computational benefits for example, rotations can be decomposed into shears and used for producing fast method of rotating, without need for using trogonometric function calls
How can you use transformations to convert a circle to an ellipse?
We can obtain an ellipse by stretching and rotating the points of a unit circle. This can be achieved by
- multiplying by a scaling matrix to achieve the ellipsoid shape (note different scaling in x and y directions for ellipse), followed by
- multiplying by a rotation R to orient the point along the path of the ellipse.