transforming points from global to local coordinates
Craig Latta
Craig.Latta at NetJam.ORG
Wed Feb 27 01:13:56 UTC 2002
Hi--
I would expect (aMorph globalPointToLocal: aPointInGlobalCoordinates)
to answer aPointInGlobalCoordinates as translated into the local
coordinates of aMorph. This doesn't seem to be the case... should it? If
not, what should I do instead, and how could I have learned this?
thanks,
-C
***
"E.g., I would expect 25 at 25 from..."
| morph |
morph _ (
(Morph new)
extent: 50 at 50;
position: 300 at 300).
morph globalPointToLocal: morph bounds center
"...but I get 325 at 325 instead."
--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
crl at watson.ibm.com
Smalltalkers do: [:it | All with: Class, (And love: it)]
More information about the Squeak-dev
mailing list
|