A gem for generating transformation matrices.