add some eigen code regarding transformation matrix