<br clear="all">Hello,<br>I am using Squeak-3.9-final-7067.image on win-xp.<br><br>I create a polygon using:<br>p := PolygonMorph new.<br>p vertices: {0@0. 0@200. 200@200} color: Color black borderWidth: 2 borderColor: Color green.
<br><br>My original goal is to check if a line segment L is completely contained within this polygon p. Since the System browser shows that PolygonMorph has an intersects: aRectangle message, I thought I would create a rectangle with the original and corner as the end points of L and use 
it to query intersects.<br><br>However any attempt to use the intersects: aRectangle method in PolygonMorph, e.g.<br><br>r := Rectangle new.<br>r setOrigin: 150@0 corner: 175@25.<br>p intersects: r<br>returns a message not understood.
<br><br>Am I doing something fundamentally wrong ?<br><br>I can probably work around, but I would like to know why a method documented in<br>the system browser does not work as expected.<br>thanks,<br><br>sgh<br><br>
<br clear="all"><br>