Calling Intersect(r1,r2)
returns {{X=238.4419,Y=0,Width=84.55807,Height=77.11342}}
. The Width
is != 84.55808
and therefore the comparison in Contains
"Is the intersection rectangle the same as the rect
argument?" fails.
So ultimately, this comes down to 323 - 238.4419
. If you do that with paper-and-pencil, you'll get 84.5581
but with floating point, 323f - 238.4419f
= 84.55811f
(N.B.: extra 0.00001).
I've submitted this as a bug: https://bugzilla.xamarin.com/show_bug.cgi?id=15518