I want to make a translation of a point cloud, currently I have the vector of the axis and I also have the angle. Can I construct automatically the matrix or I have to calculate it by manually like this?

In the PCL example they use a MAtrix 4x4 that they build, so I hope someone know a way to obtain this matrix automatically.