Rotate a geometry

Is there an easy way to rotate a geometry?

Specifically, I’m looking for rotating a polygon. Something like Phaser.Geom.Polygon.Rotate() would be very helpful.

Rotating my game object polygon works fine, but the .geom resides in its original form (which is unrotated).

I think you have to iterate the points and rotate around an origin. There may be a centroid method.