01 / 15 · 45–60 min
Change reference frames.
Where does a point end up after a rotation and a translation?
Check my intuition
01 · Predict
Before changing the settings.
P = (2, 1) m. Rotate +90° around the origin, then add translation (3, 1) m. What are the final coordinates? Positive angles are counterclockwise.
A hint
At +90°, (x, y) becomes (−y, x). Then add the translation.
02 · Experiment and compare
Put the model to the test.
P = (2.00 ; 1.00) → P′ = (3.23 ; 2.87) m.
- x′
- 3.23 m
- y′
- 2.87 m
- Rotation
- 30.00 °
Read values as a table
| Step | x (m) | y (m) |
|---|---|---|
| Start P | 2.00 | 1.00 |
| Intermediate | 1.23 | 1.87 |
| End P′ | 3.23 | 2.87 |
Understand the calculations
03 · Connect the diagram to calculations
The numbers behind motion.
For a column vector, rotating then translating gives p′ = R(θ)p + t. Translating then rotating gives p′ = R(θ)(p + t). The translation itself is therefore rotated in the second case.
R(θ) = [[cos θ, −sin θ],
[sin θ, cos θ]]
p = [x, y]ᵀ ; t = [tx, ty]ᵀThe homogeneous matrix below matches the current settings. Lengths are in metres; θ is converted to radians for computation.
[ 0.87 -0.50 2.00 ] [ 0.50 0.87 1.00 ] [ 0.00 0.00 1.00 ]
A few lines to reconstruct
x2 = cos(theta) * x - sin(theta) * y + tx
y2 = sin(theta) * x + cos(theta) * y + tyThe notebook provides one function per laboratory, hand-calculated examples and tests. Exercises isolate components; these pages run the complete simulations.
Keep an observation
04 · Record
What changed?
Compare two settings. Record the effect, your explanation and a case where the model might fail. Saving keeps the current settings and seed, not a certification of competence.
atomsh / lab