![]() |
![]() |
![]() |
![]() |
![]() |
|
Smalltalk offers a Rectangle class as
well as a Point class. One way to create a Rectangle instance
is to send the origin:corner: method to the Rectangle class.
The following, for example, creates a rectangle with an upper-left corner
specified by the point 16@10 and with a lower-right corner
specified by 21@13.
Rectangle origin: 16 @ 10 corner: 21 @ 13