Difference between revisions of "Homogeneous coordinates"
Line 71: | Line 71: | ||
</math> | </math> | ||
− | As can be seen in the resulting vector, the first 3 summands of each component belong to the rotational part while the components of the translation vector are added independently of the previous coordinates. So in homogeneous coordinates rotation and translation can be performed with a single transformation matrix. The rotation is applied first and then the translation vector is added. Regarding the particular transformations | + | As can be seen in the resulting vector, the first 3 summands of each component belong to the rotational part while the components of the translation vector are added independently of the previous coordinates. So in homogeneous coordinates rotation and translation can be performed with a single transformation matrix. The rotation is applied first and then the translation vector is added. Regarding the particular transformations multiplication with a homogeneous transformation matrix corresponds to:<br/> |
:<math> | :<math> | ||
\vec{\mathbf{q}}_1= | \vec{\mathbf{q}}_1= |
Revision as of 11:06, 16 June 2014
← Back: Rotation | Overview: Transformations | Next: Combinations of transformations → |
In this article three-dimensional space is regarded because it is usually used in robotics. Rotation of three-dimensional coordinates can be described by a 3-by-3 matrix. All the components of the matrix are multiplied with one of the three coordinates. So the transformation is dependent on the original coordinates. Translation however is actually a vector addition and so independent of the original coordinates (see subarticle about translation).
To be able to also apply a translation by matrix multiplication, an additional dimension is introduced. For vectors, the additional fourth component is always 1. So a three-dimensional vector in homogeneous coordinates looks as follows:
A homogeneous transformation matrix for three-dimensional space is a 4-by-4 matrix. consists of a 3-by-3 rotation matrix and a 3-by-1 translation vector combined with the last row of the identity matrix:
Let the components of the rotation matrix and the translation vector be denoted as follows:
So the multiplication of a homogeneous transformation matrix with a vector in homogeneous coordinates leads to:
As can be seen in the resulting vector, the first 3 summands of each component belong to the rotational part while the components of the translation vector are added independently of the previous coordinates. So in homogeneous coordinates rotation and translation can be performed with a single transformation matrix. The rotation is applied first and then the translation vector is added. Regarding the particular transformations multiplication with a homogeneous transformation matrix corresponds to: