[squeak-dev] The Trunk: Collections-ar.418.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Dec 14 16:22:16 UTC 2010


Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.418.mcz

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

Name: Collections-ar.418
Author: ar
Time: 14 December 2010, 8:21:44.816 am
UUID: 86763125-572f-a44b-8b82-ce7de39fb46d
Ancestors: Collections-mtf.417

Adds FloatArray>>normalize from Croquet for in-place normalization.

=============== Diff against Collections-mtf.417 ===============

Item was added:
+ ----- Method: FloatArray>>normalize (in category 'arithmetic') -----
+ normalize
+ 	"Unsafely normalize the receiver in-place (become a unit vector).
+  	 Div-by-Zero raised if len 0."
+ 	<primitive: 'primitiveNormalize' module: 'FloatArrayPlugin'>
+ 	self /= self length.!




More information about the Squeak-dev mailing list