<div dir="ltr"><div>Doh, ignore my answer.</div><div>Its to early in the morning :-D</div><div><br></div><div>Best,</div><div>Karl<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 29, 2022 at 6:50 AM karl ramberg <<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I think you must use this method with a very similar name</div><div><br></div><div>intersects: aRectangle </div>      "Answer whether aRectangle intersects the receiver anywhere."<br>       "Optimized; old code answered:<br><div>                (origin max: aRectangle origin) < (corner min: aRectangle corner)"</div><div><br></div><div>Best,</div><div>Karl<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 29, 2022 at 1:50 AM LawsonEnglish <<a href="mailto:LEnglish5@cox.net" target="_blank">LEnglish5@cox.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I did this and created 2 small rectangles quite far from each other trying to figure out what the method returns when there is no intersection:<br>
<br>
r1 := Rectangle fromUser.<br>
r2 := Rectangle fromUser.<br>
<br>
r2 3072@993 corner: 3203@1136 <br>
r1 2710@632 corner: 2835@752 <br>
<br>
r2 intersect: r1 3072@993 corner: 2835@752 <br>
<br>
r1 intersect: r2  3072@993 corner: 2835@752 <br>
<br>
Could someone explain these results?<br>
<br>
Not in terms of the math involved (I assume that there’s no math bug as the routine was last edited 22 years ago and it is used everywhere in Morphic), but what the LOGIC is for returning what is returned and what it means in the context of the comments:<br>
<br>
intersect: aRectangle <br>
        "Answer a Rectangle that is the area in which the receiver overlaps with <br>
        aRectangle…. “<br>
<br>
I was trying to figure out how to look to identify when there is no intersection, and that isn’t at all obvious here. <br>
<br>
Thanks.<br>
<br>
<br>
L<br>
<br>
</blockquote></div>
</blockquote></div>