Next: , Previous: , Up: Rectangle   [Index]


1.142.7 Rectangle: transforming

moveBy: aPoint

Change the receiver so that the origin and corner are shifted by aPoint

moveTo: aPoint

Change the receiver so that the origin moves to aPoint and the size remains unchanged

scaleBy: scale

Answer a copy of the receiver in which the origin and corner are multiplied by scale

translateBy: factor

Answer a copy of the receiver in which the origin and corner are shifted by aPoint