[Pkg] The Trunk: Graphics-bp.366.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 8 15:55:52 UTC 2016


Bernhard Pieber uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-bp.366.mcz

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

Name: Graphics-bp.366
Author: bp
Time: 8 December 2016, 4:47:47.670741 pm
UUID: 1145c7b4-cdd0-4b89-8049-958b2cc73754
Ancestors: Graphics-bf.365, Graphics-bp.321

merged methods for getting a rectangle's halves and quadrants

=============== Diff against Graphics-bf.365 ===============

Item was added:
+ ----- Method: Rectangle>>bottomHalf (in category 'transforming') -----
+ bottomHalf
+ 	^self withTop: self center y!

Item was added:
+ ----- Method: Rectangle>>bottomLeftQuadrant (in category 'transforming') -----
+ bottomLeftQuadrant
+ 	^self leftCenter corner: self bottomCenter!

Item was added:
+ ----- Method: Rectangle>>bottomRightQuadrant (in category 'transforming') -----
+ bottomRightQuadrant
+ 	^self center corner: self bottomRight!

Item was added:
+ ----- Method: Rectangle>>leftHalf (in category 'transforming') -----
+ leftHalf
+ 	^self withRight: self center x!

Item was added:
+ ----- Method: Rectangle>>rightHalf (in category 'truncation and round off') -----
+ rightHalf
+ 	^self withLeft: self center x!

Item was added:
+ ----- Method: Rectangle>>topHalf (in category 'transforming') -----
+ topHalf
+ 	^self withBottom: self center y!

Item was added:
+ ----- Method: Rectangle>>topLeftQuadrant (in category 'transforming') -----
+ topLeftQuadrant
+ 	^self topLeft corner: self center!

Item was added:
+ ----- Method: Rectangle>>topRightQuadrant (in category 'transforming') -----
+ topRightQuadrant
+ 	^self topCenter corner: self rightCenter!



More information about the Packages mailing list