Homogeneous Coordinates for 2D Transforms

An extra coordinate lets a matrix express translation alongside linear operations in a common representation.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a translation matrix
  2. Check the displacement form

Trace a translation matrix

With column vectors, \((x,y,1)\) transformed by rows \((1,0,3)\), \((0,1,4)\), and \((0,0,1)\) becomes \((x+3,y+4,1)\). The last row keeps the added coordinate equal to one. See multiplication by rows.

Check the displacement form

Using final coordinate zero for a displacement leaves those added translation terms zero. Points and vectors explain why positions and differences use different conventions.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩