[interfacekit] Re: about the BRect bug

burton666@xxxxxxxxxxx wrote:
> I don't think this is a bug. If a Rect
> totally contains another, the two perimeters never intersects. So it could be 
> that
> Intersects() means "the perimeter intersects...".

According to the BeBook "Intersect() returns true if the BRect has any 
area -- even a corner or part of a side -- in common with rect, and 
false if it doesn't."  If "rect" is entirely contained within the BRect, 
then the entire area of "rect" is "in common" and, therefore, 
intersecting.  I'm still of the opinion that this is a bug.

e


Other related posts: