Rigid trans

Could you review this code. Thanks!