rotation of vertices using transformation matric