[Pkg] The Trunk: Graphics-mtf.165.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 29 05:13:05 UTC 2010


Matthew Fulmer uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mtf.165.mcz

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

Name: Graphics-mtf.165
Author: mtf
Time: 29 December 2010, 12:10:24.297 am
UUID: ad093cc3-3d69-7f42-969e-a103e2dca6a3
Ancestors: Graphics-mtf.164

added u, v accessors to Point, for convenience when dealing with textures. cherrypicked from Cobalt:

Name: Graphics-jrd.22
Author: jrd
Time: 30 June 2010, 12:43:30 am
UUID: 4dbde08d-b493-4013-b645-5ea17194d447
Ancestors: Graphics-mtf.21

Changed:

- Added convenience methods to create and access a point using u and v (as is the usage in texture coordinates) instead of x and y

=============== Diff against Graphics-mtf.164 ===============

Item was added:
+ ----- Method: Point class>>u:v: (in category 'instance creation') -----
+ u: xInteger v: yInteger 
+ 	"Answer an instance of me with coordinates xInteger and yInteger."
+ 
+ 	^self new setX: xInteger setY: yInteger!

Item was added:
+ ----- Method: Point>>u (in category 'accessing') -----
+ u
+ 	^x!

Item was added:
+ ----- Method: Point>>v (in category 'accessing') -----
+ v
+ 	^y!



More information about the Packages mailing list