Optimized rotateVertex