Rotate surfaces around its axis as one cluster

Hello, I am a beginner in using grasshopper and here I want to rotate these 6 vertical surfaces for example around their vertical axis ( coloured yellow) or around their horizons axis ( coloured blue) with specific angle but they should rotated as one cluster or rotate together . I try to use these components showed in figure below but I don’t know how to complete to do this task. I hope someone helping me. Thanks…

There are many ways to do them, it all falls into being able to extract the axes and rotation centers from the input surfaces.

In this attached script I extracted U & V directions at the middle point of the surfaces and used them to create a rotational transform.

I made a toggle so you can switch between multiple methods of rotation, study it well, although it is simple script, hopefully you can learn from it.

Surface Rotations.gh (14.1 KB)