Skip to main content

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

T=[Lt01],T−1=[L−1−L−1t01]T=\begin{bmatrix}L&\mathbf t\\0&1\end{bmatrix},\qquad T^{-1}=\begin{bmatrix}L^{-1}&-L^{-1}\mathbf t\\0&1\end{bmatrix}
The same object in local and world coordinates
Figure 1. The same object in local and world coordinates

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
CasePredictionCalculated resultViewer output (optional)
T(0,0,0,1)TT(0,0,0,1)^T
T(1,0,0,0)TT(1,0,0,0)^T
RT((9,1,0)T−(10,0,0)T)R^T((9,1,0)^T-(10,0,0)^T)
  • Optional extension: Nonuniform scale before rotation; inverse order S⁻¹Rᵀ after subtracting t

Exercises​

  1. Problem: T(0,0,0,1)TT(0,0,0,1)^T
  2. Problem: T(1,0,0,0)TT(1,0,0,0)^T
  3. Problem: RT((9,1,0)T−(10,0,0)T)R^T((9,1,0)^T-(10,0,0)^T)
  4. Problem: Translation of a direction vector
Answers and checks
  1. Answer: (10,0,0,1)T(10,0,0,1)^T
  2. Answer: (0,1,0,0)T(0,1,0,0)^T
  3. Answer: (1,1,0)T(1,1,0)^T
  4. Answer: No effect; homogeneous w=0

Connections​