Coordinate Transformations
- Situation: The same object in local and world coordinates
- Target: Affine map · Homogeneous coordinates · Inverse
- Convention: Right-handed orthonormal frame; column vectors; rightmost matrix first; angles in radians unless marked °; lengths in m · Overview
Core concepts
-
Affine map: world point pW=LpL+t; columns of L as local basis axes expressed in world coordinates
-
Homogeneous coordinates: point (x,y,z,1), direction (x,y,z,0); translation affecting points only
-
Inverse: pL=L⁻¹(pW−t); rigid transform L=R → R⁻¹=Rᵀ; singular scale prevents recovery
-
Hierarchy and camera: world=parent×local; view=inverse(camera world transform); rightmost matrix applied first
-
Change of frame versus motion: inverse coordinate mapping for the same point; active transform for moving geometry; perspective division only after projective mapping
Worked example
R=Rz(90°), t=(10,0,0) m: local A,B,C → world (9,1,0), (5,4,0), (5,1,0) m; direction B−A → (−4,3,0) m
Practice
- Preparation → prediction → calculation: Prior R and triangle; predict world origin → transform three points and one direction → inverse round trip → retain frame and rigid matrix
- Record: Assumed exercise inputs; predictions before calculation; calculated answers and optional viewer output in separate columns; no physical measurements
| Case | Prediction | Calculated result | Viewer output (optional) |
|---|---|---|---|
- Optional extension: Nonuniform scale before rotation; inverse order S⁻¹Rᵀ after subtracting t
Exercises
- Problem:
- Problem:
- Problem:
- Problem: Translation of a direction vector
Answers and checks
- Answer:
- Answer:
- Answer:
- Answer: No effect; homogeneous w=0
Connections
- Previous: Linear Transformations
- Next: Orientation