![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
You also can create Rectangle
instances using messages that specify
rectangle origin and size independently. Such messages allow you to
shift from one coordinate system to another simply by adding an offset to
the origin. For example, the origin:extent:
message's first
argument specifies the location of a rectangle relative to the current
coordinate system, and the second argument specifies the size of the
rectangle in width and height. Accordingly, the following creates a
rectangle that is identical to the one created by the example in
Segment 620.
Rectangle origin: 16 @ 10 extent: 5 @ 3