Home Segments Index Top Previous Next

623: Mainline

To extract information from a Rectangle instance, you send an origin, corner, or extent message to the rectangle:

Workspace
Transcript 
  show: (Rectangle origin: 16@10 extent: 5@3) origin printString; cr; 
  show: (Rectangle origin: 16@10 extent: 5@3) corner printString; cr; 
  show: (Rectangle origin: 16@10 extent: 5@3) extent printString; cr 
Transcript 
16 @ 10 
21 @ 13 
5 @ 3