Polygon rotation from 0 to 360 degrees

Hi, I wanted a method to rotate this polygon around the central point from 0 to 360 degrees. Is there a native method to perform this operation?

image

image