Translation -- Homogeneous Coordinates
Recall that a translation cannot be implemented as a linear transformation in R^2. In order to create homogeneous coordinates, it is necessary to add a third row (all 1's) to the coordinate matrix.
> one := vector( 9, 1 );
> Nh := stackmatrix( N, one );
> T := matrix( 3, 3, [ [ 1, 0, 0.5 ], [ 0, 1, 1 ], [ 0, 0, 1 ] ] );
> Ntr := evalm( T &* Nh );
> pointplot( delrows(Ntr,3..3), opts, title="Translation" );
>