The Trunk: Graphics-cbc.372.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-cbc.372.mcz

commits-2
David T. Lewis uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-cbc.372.mcz

==================== Summary ====================

Name: Graphics-cbc.372
Author: cbc
Time: 28 March 2017, 5:18:09.019402 pm
UUID: 7b9783b1-87c5-3549-ac32-42acd6abcb12
Ancestors: Graphics-eem.371

Added method to allow creating a rectangle based on teh center of the rectangle.

=============== Diff against Graphics-eem.371 ===============

Item was added:
+ ----- Method: Rectangle class>>exactCenter:extent: (in category 'instance creation') -----
+ exactCenter: centerPoint extent: extentPoint
+ "Answer an instance of me whose center is centerPoint and width
+ by height is extentPoint. "
+ ^ self origin: centerPoint - (extentPoint / 2) extent: extentPoint
+ !