Mesh Vertices Rotation

Hello, i’ve got a simple question.

I want to rotate every vert over the time of Z
It should look like the picture below…

The rectangle contains 4 vertices and as u can see along the Z axis the vertices are rotating over a value of degrees.

Here is my code:

Thx for helping me :wink:

Any idea?