views:

248

answers:

1

I have program where you cannot place rectangles over each others, so how can I check if rectangles collide? Is there some kind of function for this or do I have to make my own?

+1  A: 

Andy Beaulieu has a good post on the various collision detection methods in Silverlight 3.

Jon Galloway
The article is a little OTT for the task, the clue is buried in the code. `rect1.Intersect(rect2) != Rect.Empty`
AnthonyWJones

related questions