Rotation capability added to transformation matrix