Skip to main content
1 of 2
Ralf
  • 21
  • 1

With a 4x4 matrix, what does the other edge do?

Usually, we do our multiplication like this, for example just some shifting around:
[1 0 0 dx] _ [px] _ [px+dx]
[0 1 0 dy] _ [py] _ [py+dy]
[0 0 1 dz] * [pz] = [pz+dz]
[0 0 0 1] __ [1] ___ [1]
We put the translation amount along the right hand edge of the matrix.

While programming around I forgot about that and put them on the lower line instead, on the places marked in bold above.

I wonder what that did to the Points? With the 3x3 in the left top being an identity matrix, and the d's being zero nothing happened to my point

[1 0 0 0] _ [1] _ [1]
[0 1 0 0] _ [1] _ [1]
[0 0 1 0] * [1] = [1]
[1 2 3 1] _ [1] _ [7]

except that 1 we always use in fourth place gets changed (meaning further multiplication with the point results in a mess?)

What am I doing by making the fourth coordinate change?

Ralf
  • 21
  • 1