Alex
Alex

Reputation: 461

Monotouch Check collision of two Frames

Is it possible to check if two frames have a collision or check if a frame overlays another frame?

It is possible for me to calc it but I only want to know if there is another solution.

Upvotes: 2

Views: 73

Answers (1)

jonathanpeppers
jonathanpeppers

Reputation: 26505

RectangleF has an InsersectsWith method: http://msdn.microsoft.com/en-us/library/system.drawing.rectanglef.intersectswith.aspx

Same is available in MonoTouch.

Upvotes: 4

Related Questions