An example: ps := Polygon new addVertex: 0@0; addVertex: 30@30; addVertex: 50@10. self assert: (ps containsPoint: 24@24). self assert: (ps containsPoint: 40@30) not. Transcript show: ps calculatedBounds asString; cr.
On Wed, Mar 30, 2011 at 9:22 PM, laurent laffont <[email protected]>wrote: > > > On Tue, Mar 29, 2011 at 10:47 AM, Gary Chambers <[email protected] > > wrote: > >> "I represent a model of an open sequence of connected points that can be >> queried for >> enclosing bounds and whether a point lies along any segment. >> >> I am typically used for drawing with a Canvas." >> >> > Thanks Gary > > > Laurent. > > > >> Regards, Gary >> >> ----- Original Message ----- >> *From:* laurent laffont <[email protected]> >> *To:* An open mailing list to discuss any topics related to an >> open-sourceSmalltalk <[email protected]> >> *Sent:* Tuesday, March 29, 2011 7:51 AM >> *Subject:* [Pharo-project] [COTDC] 38 - PathShape >> >> Let's comment Polymorph for several days. >> >> Today: PathShape >> >> Comment Of The Day Contest - One Day One Comment >> Rules: >> #1: Each day a not commented class is elected. Each day the best comment >> will be integrated with name of the author(s). >> #2: If you cannot comment it, deprecate it. >> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest >> >> Laurent >> >> >
