Help Rotate a Shape Controlled by an Object But With Limits

I need help using grasshopper to rotate a shape around a point while limiting the degree to which it rotates and having the rotation controlled by an object. Please see images it will be much clearer then my description.In the image you see a series of identical shapes rotating around a point which are manually limited and rotated. i would like to create shapes which force the rotation while making sure it does go past a certain angle or point. Any help would be greatly appreciated because making different iterations of this manually is taking FOREVER!

Thank you,