In my iPad application, there is one main view. It contains various views which have different sizes and different images (tetragons, but not rectangles).
The grey lines represent the frames, the red lines represent the outline of the image.
It is a bit like Tangram, but more complicated since the tetragons are not rectangles.
The views have to be moved and rotated but they should not touch one another, and not overlay one another. You know what I mean? If I know the points of the tetragons, what is the best way of implementing this?