[squeak-dev] The Trunk: Graphics-nice.143.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jul 13 18:54:31 UTC 2010


Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.143.mcz

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

Name: Graphics-nice.143
Author: nice
Time: 13 July 2010, 8:53:47.189 pm
UUID: 73b2435d-0711-4319-a602-5e5b997209d6
Ancestors: Graphics-jcg.142

_ -> :=

=============== Diff against Graphics-jcg.142 ===============

Item was changed:
  ----- Method: Point>>normal (in category 'point functions') -----
  normal
  	"Answer a Point representing the unit vector rotated 90 deg clockwise.
  	For the zero point return a normal of  -1 at 0   ."
  
  	| n d |
  	
+ 	n := y negated @ x.
- 	n _ y negated @ x.
  	(d := (n x * n x + (n y * n y))) = 0 ifTrue: [ ^  -1 @0  ] .
  	^n / d sqrt!




More information about the Squeak-dev mailing list