Translation matrix

Computes the translation matrix.

translation_matrix(Vector)

Given a vector v of two components, computes the matrix that translates the points through vector v. If the has three components, homogeneous coordinates are used: the third component indicates the scaling.