I need to detect intersecting nodes in my document.
What I thought about doing is as fallow:
When inserting a new node run through all the nodes in the document and check if they are intersecting.
The check, as I see in now needs to be done manually which means a lot of conditions (about 15) and it looks pretty ugly… :-\
Is there a way to cast the Shape of the node to Rectangle or RectangleF and the check will be done as a method call instead of my ugly way?..
Concept changes that could help solving this problem will be happily accepted.
Thank you a lot.