from the above figure,which blcok the source rectangle can see.
Correct Answer: 2,3,4,6,7

Each Rectangle is insert poin(red star) [x,y], rotation angle, length(X direction), Depth(Y direction), and tolerance are in the database (Table rectangle)

I would like to know the best Algorithum.

Thanks guys