views:

81

answers:

0

I have a grid that is dynamically drawn with the Graphics class. I have bricks that collectively make up pieces that need to snap into the grid. These pieces can be rotated by 90 degrees. Each time a piece is rotated I need to find the new points for the piece (an irregular shape) so I can calculate whether it is over an open square(s) on the grid.

Is there a function to return all the points of an irregular shape? If you think I'm going about this the wrong way please say.