Help! Move only within the boundaries

Hi. I’m perfectly new in grasshopper.
Like this capture, Is there a way to make it move only within the boundaries?
Can rotate, move, flip. It’s just don’t go out of star border like red one.
Thank you for any suggestion.

Hello! I am actually not really sure if I understood your question correctly, buuuut: Do you think this plugin helps you? With it, you can efficiently arrange shapes in other shapes.

I want to place just one, not dozen. Reason why ask it is I want to know how many arrangement scheme there are with one mass shape in site

To get help post a file