The matrix form of the affine transformation is:

Unlike the Euclidean Transformation, the affine transformation requires only to be an invertible matrix, not necessarily an orthogonal matrix. An affine transformation is also called an orthogonal projection. After the affine transformation, a cube is no longer square, but the faces are still parallelograms.