The Trunk: EToys-cbc.334.mcz

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

The Trunk: EToys-cbc.334.mcz

commits-2
Chris Cunningham uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-cbc.334.mcz

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

Name: EToys-cbc.334
Author: cbc
Time: 12 June 2018, 9:53:07.614851 pm
UUID: 7b371c28-631f-374b-96cd-0dfcbac9b287
Ancestors: EToys-hjh.333

moved #rotationCenter and #rotationCenter: to base (Morphic) package in category 'rotate scale and flex'

=============== Diff against EToys-hjh.333 ===============

Item was removed:
- ----- Method: Morph>>referencePosition (in category '*Etoys-geometry') -----
- referencePosition
- "Return the current reference position of the receiver"
- | box |
- box := self bounds.
- ^box origin + (self rotationCenter * box extent).
- !

Item was removed:
- ----- Method: Morph>>referencePosition: (in category '*Etoys-geometry') -----
- referencePosition: aPosition
- "Move the receiver to match its reference position with aPosition"
- | newPos intPos |
- newPos := self position + (aPosition - self referencePosition).
- intPos := newPos asIntegerPoint.
- newPos = intPos
- ifTrue:[self position: intPos]
- ifFalse:[self position: newPos].!